	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as3722_init
_as3722_init:                           ## @as3722_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rdi)
	movq	_AS3722_INT_PULL_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	cmovel	%ecx, %esi
	cmpq	$0, (%rdi)
	movq	_AS3722_I2C_PULL_UP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmovnel	%edx, %ecx
	orl	%esi, %ecx
	movq	_AS3722_IO_VOLTAGE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%eax, %edx
	callq	_RM1
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_AS3722_INTERRUPT_MASK1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WR1
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	_AS3722_INTERRUPT_MASK2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WR1
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_AS3722_INTERRUPT_MASK3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WR1
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_AS3722_INTERRUPT_MASK4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_WR1
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AS3722_INT_PULL_UP,4,2         ## @AS3722_INT_PULL_UP
	.comm	_AS3722_I2C_PULL_UP,4,2         ## @AS3722_I2C_PULL_UP
	.comm	_AS3722_IO_VOLTAGE,4,2          ## @AS3722_IO_VOLTAGE
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_AS3722_INTERRUPT_MASK1,4,2     ## @AS3722_INTERRUPT_MASK1
	.comm	_AS3722_INTERRUPT_MASK2,4,2     ## @AS3722_INTERRUPT_MASK2
	.comm	_AS3722_INTERRUPT_MASK3,4,2     ## @AS3722_INTERRUPT_MASK3
	.comm	_AS3722_INTERRUPT_MASK4,4,2     ## @AS3722_INTERRUPT_MASK4
	.no_dead_strip	_as3722_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as3722_init
_as3722_init:                           ; @as3722_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _AS3722_INT_PULL_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AS3722_INT_PULL_UP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	x10, x9, [x0]
	cmp	x9, #0
	csel	w9, wzr, w8, eq
Lloh3:
	adrp	x11, _AS3722_I2C_PULL_UP@GOTPAGE
Lloh4:
	ldr	x11, [x11, _AS3722_I2C_PULL_UP@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	x10, #0
	csel	w10, wzr, w11, eq
	orr	w3, w10, w9
Lloh6:
	adrp	x9, _AS3722_IO_VOLTAGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AS3722_IO_VOLTAGE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	orr	w2, w11, w8
	bl	_RM1
	cbnz	w0, LBB0_4
; %bb.1:
Lloh9:
	adrp	x8, _AS3722_INTERRUPT_MASK1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AS3722_INTERRUPT_MASK1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WR1
	cbnz	w0, LBB0_4
; %bb.2:
Lloh12:
	adrp	x8, _AS3722_INTERRUPT_MASK2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AS3722_INTERRUPT_MASK2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WR1
	cbnz	w0, LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _AS3722_INTERRUPT_MASK3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AS3722_INTERRUPT_MASK3@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WR1
	cbz	w0, LBB0_6
LBB0_4:
Lloh18:
	adrp	x8, _ENXIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh21:
	adrp	x8, _AS3722_INTERRUPT_MASK4@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AS3722_INTERRUPT_MASK4@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_WR1
Lloh24:
	adrp	x8, _ENXIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, wzr, w8, eq
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AS3722_INT_PULL_UP,4,2         ; @AS3722_INT_PULL_UP
	.comm	_AS3722_I2C_PULL_UP,4,2         ; @AS3722_I2C_PULL_UP
	.comm	_AS3722_IO_VOLTAGE,4,2          ; @AS3722_IO_VOLTAGE
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_AS3722_INTERRUPT_MASK1,4,2     ; @AS3722_INTERRUPT_MASK1
	.comm	_AS3722_INTERRUPT_MASK2,4,2     ; @AS3722_INTERRUPT_MASK2
	.comm	_AS3722_INTERRUPT_MASK3,4,2     ; @AS3722_INTERRUPT_MASK3
	.comm	_AS3722_INTERRUPT_MASK4,4,2     ; @AS3722_INTERRUPT_MASK4
	.no_dead_strip	_as3722_init
.subsections_via_symbols
