	.file	"extr_w1_io.c_w1_reset_select_slave.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	w1_reset_select_slave
	.type	w1_reset_select_slave, @function
w1_reset_select_slave:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 72
	.cfi_def_cfa_offset 96
	mov	rdi, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	w1_reset_bus@PLT
	test	rax, rax
	jne	.L5
	mov	rdi, QWORD PTR [rbx]
	cmp	DWORD PTR [rdi], 1
	je	.L8
	mov	eax, DWORD PTR W1_MATCH_ROM[rip]
	mov	edi, DWORD PTR 8[rbx]
	pxor	xmm0, xmm0
	mov	DWORD PTR 48[rsp], 0
	movaps	XMMWORD PTR 16[rsp], xmm0
	lea	rbp, 16[rsp]
	movaps	XMMWORD PTR 32[rsp], xmm0
	mov	DWORD PTR 16[rsp], eax
	call	le64_to_cpu@PLT
	lea	rsi, 12[rsp]
	lea	rdi, 20[rsp]
	mov	edx, 8
	mov	DWORD PTR 12[rsp], eax
	call	memcpy@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	edx, 9
	mov	rsi, rbp
	call	w1_write_block@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR W1_SKIP_ROM[rip]
	call	w1_write_8@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, -1
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	w1_reset_select_slave, .-w1_reset_select_slave
	.comm	W1_SKIP_ROM,4,4
	.comm	W1_MATCH_ROM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_w1_io.c_w1_reset_select_slave.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	w1_reset_select_slave
	.syntax unified
	.arm
	.fpu softvfp
	.type	w1_reset_select_slave, %function
w1_reset_select_slave:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L10
	sub	sp, sp, #48
	mov	r4, r0
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	w1_reset_bus
	subs	r5, r0, #0
	bne	.L5
	ldr	r0, [r4]
	ldr	r3, [r0]
	cmp	r3, #1
	beq	.L8
	add	r6, sp, #12
	mov	r2, #32
	mov	r1, r5
	mov	r0, r6
	bl	memset
	ldr	r3, .L10+4
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	str	r3, [sp, #8]
	bl	le64_to_cpu
	ldr	r1, [sp, #8]
	str	r0, [sp, #4]
	stm	r6, {r0, r1}
	mov	r2, #9
	ldr	r0, [r4]
	add	r1, sp, #8
	bl	w1_write_block
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r5
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L10+8
	ldr	r1, [r3]
	bl	w1_write_8
	b	.L1
.L5:
	mvn	r5, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	W1_MATCH_ROM
	.word	W1_SKIP_ROM
	.size	w1_reset_select_slave, .-w1_reset_select_slave
	.comm	W1_SKIP_ROM,4,4
	.comm	W1_MATCH_ROM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
