	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atxp1_update_device
_atxp1_update_device:                   ## @atxp1_update_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_i2c_client
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	40(%rbx), %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%rbx)
	jne	LBB0_3
LBB0_2:
	movq	_ATXP1_VID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	%rax, 32(%rbx)
	movq	_ATXP1_CVID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	%rax, 24(%rbx)
	movq	_ATXP1_GPIO1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	%rax, 16(%rbx)
	movq	_ATXP1_GPIO2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	%rax, 8(%rbx)
	movl	$1, (%rbx)
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_ATXP1_VID,4,2                  ## @ATXP1_VID
	.comm	_ATXP1_CVID,4,2                 ## @ATXP1_CVID
	.comm	_ATXP1_GPIO1,4,2                ## @ATXP1_GPIO1
	.comm	_ATXP1_GPIO2,4,2                ## @ATXP1_GPIO2
	.no_dead_strip	_atxp1_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atxp1_update_device
_atxp1_update_device:                   ; @atxp1_update_device
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_to_i2c_client
	mov	x21, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #40]
Lloh3:
	adrp	x9, _HZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _ATXP1_VID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATXP1_VID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	str	x0, [x19, #32]
Lloh9:
	adrp	x8, _ATXP1_CVID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATXP1_CVID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	str	x0, [x19, #24]
Lloh12:
	adrp	x8, _ATXP1_GPIO1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATXP1_GPIO1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	str	x0, [x19, #16]
Lloh15:
	adrp	x8, _ATXP1_GPIO2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATXP1_GPIO2@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	str	x0, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_ATXP1_VID,4,2                  ; @ATXP1_VID
	.comm	_ATXP1_CVID,4,2                 ; @ATXP1_CVID
	.comm	_ATXP1_GPIO1,4,2                ; @ATXP1_GPIO1
	.comm	_ATXP1_GPIO2,4,2                ; @ATXP1_GPIO2
	.no_dead_strip	_atxp1_update_device
.subsections_via_symbols
