	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as3722_i2c_of_probe
_as3722_i2c_of_probe:                   ## @as3722_i2c_of_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movl	8(%r15), %edi
	callq	_irq_get_irq_data
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	movq	%rax, 24(%r14)
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	movq	%rax, 16(%r14)
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	movq	%rax, 8(%r14)
	movq	%r12, %rdi
	callq	_irqd_get_trigger_type
	movl	%eax, (%r14)
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_2
LBB0_4:
	movl	8(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device Tree not found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid IRQ: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"ams,enable-internal-int-pullup"

L_.str.3:                               ## @.str.3
	.asciz	"ams,enable-internal-i2c-pullup"

L_.str.4:                               ## @.str.4
	.asciz	"ams,enable-ac-ok-power-on"

L_.str.5:                               ## @.str.5
	.asciz	"IRQ flags are 0x%08lx\n"

	.no_dead_strip	_as3722_i2c_of_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as3722_i2c_of_probe
_as3722_i2c_of_probe:                   ; @as3722_i2c_of_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x21, [x0]
	cbz	x21, LBB0_3
; %bb.1:
	mov	x20, x1
	ldr	w0, [x19, #8]
	bl	_irq_get_irq_data
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	str	x0, [x20, #24]
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	str	x0, [x20, #16]
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	str	x0, [x20, #8]
	mov	x0, x22
	bl	_irqd_get_trigger_type
	mov	x2, x0
	str	w0, [x20]
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device Tree not found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid IRQ: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"ams,enable-internal-int-pullup"

l_.str.3:                               ; @.str.3
	.asciz	"ams,enable-internal-i2c-pullup"

l_.str.4:                               ; @.str.4
	.asciz	"ams,enable-ac-ok-power-on"

l_.str.5:                               ; @.str.5
	.asciz	"IRQ flags are 0x%08lx\n"

	.no_dead_strip	_as3722_i2c_of_probe
.subsections_via_symbols
