	.file	"extr_w1_ds28e17.c___w1_f19_set_i2c_speed.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"i2c speed set to %d kBaud\n"
	.text
	.p2align 4
	.type	__w1_f19_set_i2c_speed, @function
__w1_f19_set_i2c_speed:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 12[rsp], 900
	movabs	rax, 1717986918500
	mov	QWORD PTR 4[rsp], rax
	call	w1_reset_select_slave@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L7
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR W1_F19_WRITE_CONFIGURATION[rip]
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, 16[rsp]
	mov	edx, 2
	mov	QWORD PTR 24[rsp], rbx
	mov	QWORD PTR 16[rsp], rax
	call	w1_write_block@PLT
	mov	QWORD PTR [r12], rbx
	mov	edx, DWORD PTR 4[rsp+rbx*4]
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	dev_info@PLT
	xor	eax, eax
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__w1_f19_set_i2c_speed, .-__w1_f19_set_i2c_speed
	.comm	W1_F19_WRITE_CONFIGURATION,8,8
	.comm	EIO,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_ds28e17.c___w1_f19_set_i2c_speed.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"i2c speed set to %d kBaud\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__w1_f19_set_i2c_speed, %function
__w1_f19_set_i2c_speed:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	sub	sp, sp, #28
	ldr	r2, .L8
	add	r3, sp, #8
	mov	r6, r1
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	ldr	r3, .L8+4
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r7, [r5, #8]
	bl	w1_reset_select_slave
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, .L8+8
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, .L8+12
	mov	r1, sp
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r0, [r5, #4]
	stm	sp, {r3, r6}
	bl	w1_write_block
	add	r3, sp, #24
	add	r3, r3, r6, lsl #2
	mov	r0, r5
	ldr	r2, [r3, #-16]
	ldr	r1, .L8+16
	str	r6, [r7]
	bl	dev_info
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LANCHOR0
	.word	.LC2
	.word	EIO
	.word	W1_F19_WRITE_CONFIGURATION
	.word	.LC1
	.size	__w1_f19_set_i2c_speed, .-__w1_f19_set_i2c_speed
	.comm	W1_F19_WRITE_CONFIGURATION,4,4
	.comm	EIO,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	100
	.word	400
	.word	900
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
