	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsa9480_probe
_fsa9480_probe:                         ## @fsa9480_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	4(%rdi), %rbx
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rbx, (%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	(%r14), %rdi
	movq	_fsa9480_extcon_cable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_devm_extcon_dev_allocate
	movl	%eax, 12(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_6:
	movl	12(%r14), %esi
	callq	_devm_extcon_dev_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r12d
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_8:
	movq	_fsa9480_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	8(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_10:
	movq	_FSA9480_REG_TIMING1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TIMING1_ADC_500MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_fsa9480_write_reg
	movq	_FSA9480_REG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CON_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_fsa9480_write_reg
	movq	_FSA9480_REG_INT1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INT_ATTACH@GOTPCREL(%rip), %rax
	movq	_INT_DETACH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_INT1_MASK@GOTPCREL(%rip), %rax
	notl	%edx
	andl	(%rax), %edx
	movq	%r14, %rdi
	callq	_fsa9480_write_reg
	movq	_FSA9480_REG_INT2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INT2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_fsa9480_write_reg
	movq	(%r14), %rdi
	movl	(%r15), %esi
	movq	_fsa9480_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	%r14, (%rsp)
	leaq	L_.str.4(%rip), %r9
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	movq	(%r14), %rdi
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r12d
	jmp	LBB0_13
LBB0_12:
	movl	$1, %esi
	callq	_device_init_wakeup
	movq	%r14, %rdi
	callq	_fsa9480_detect_dev
LBB0_13:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no interrupt provided\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fsa9480_extcon_cable,4,2       ## @fsa9480_extcon_cable
L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate memory for extcon\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to register extcon device\n"

	.comm	_fsa9480_regmap_config,4,2      ## @fsa9480_regmap_config
L_.str.3:                               ## @.str.3
	.asciz	"failed to allocate register map: %d\n"

	.comm	_FSA9480_REG_TIMING1,4,2        ## @FSA9480_REG_TIMING1
	.comm	_TIMING1_ADC_500MS,4,2          ## @TIMING1_ADC_500MS
	.comm	_FSA9480_REG_CTRL,4,2           ## @FSA9480_REG_CTRL
	.comm	_CON_MASK,4,2                   ## @CON_MASK
	.comm	_FSA9480_REG_INT1_MASK,4,2      ## @FSA9480_REG_INT1_MASK
	.comm	_INT1_MASK,4,2                  ## @INT1_MASK
	.comm	_INT_ATTACH,4,2                 ## @INT_ATTACH
	.comm	_INT_DETACH,4,2                 ## @INT_DETACH
	.comm	_FSA9480_REG_INT2_MASK,4,2      ## @FSA9480_REG_INT2_MASK
	.comm	_INT2_MASK,4,2                  ## @INT2_MASK
	.comm	_fsa9480_irq_handler,4,2        ## @fsa9480_irq_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.4:                               ## @.str.4
	.asciz	"fsa9480"

L_.str.5:                               ## @.str.5
	.asciz	"failed to request IRQ\n"

	.no_dead_strip	_fsa9480_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsa9480_probe
_fsa9480_probe:                         ; @fsa9480_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	x21, x0
	ldr	w8, [x21], #4
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x19, x0
	str	x21, [x0]
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	ldr	x0, [x19]
Lloh3:
	adrp	x8, _fsa9480_extcon_cable@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fsa9480_extcon_cable@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_devm_extcon_dev_allocate
	str	w0, [x19, #12]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_8
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
	ldr	w1, [x19, #12]
	bl	_devm_extcon_dev_register
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
	ldr	x0, [x19]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_10:
Lloh16:
	adrp	x1, _fsa9480_regmap_config@GOTPAGE
Lloh17:
	ldr	x1, [x1, _fsa9480_regmap_config@GOTPAGEOFF]
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x21, x0
	ldr	x0, [x19]
	str	x21, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_12:
Lloh20:
	adrp	x8, _FSA9480_REG_TIMING1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FSA9480_REG_TIMING1@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _TIMING1_ADC_500MS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TIMING1_ADC_500MS@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fsa9480_write_reg
Lloh26:
	adrp	x8, _FSA9480_REG_CTRL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FSA9480_REG_CTRL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _CON_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CON_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fsa9480_write_reg
Lloh32:
	adrp	x8, _FSA9480_REG_INT1_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FSA9480_REG_INT1_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _INT1_MASK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _INT1_MASK@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _INT_ATTACH@GOTPAGE
Lloh39:
	ldr	x9, [x9, _INT_ATTACH@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
Lloh41:
	adrp	x10, _INT_DETACH@GOTPAGE
Lloh42:
	ldr	x10, [x10, _INT_DETACH@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w2, w8, w9
	mov	x0, x19
	bl	_fsa9480_write_reg
Lloh44:
	adrp	x8, _FSA9480_REG_INT2_MASK@GOTPAGE
Lloh45:
	ldr	x8, [x8, _FSA9480_REG_INT2_MASK@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x8, _INT2_MASK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _INT2_MASK@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fsa9480_write_reg
	ldr	x0, [x19]
	ldr	w1, [x20]
Lloh50:
	adrp	x8, _fsa9480_irq_handler@GOTPAGE
Lloh51:
	ldr	x8, [x8, _fsa9480_irq_handler@GOTPAGEOFF]
Lloh52:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh53:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh54:
	ldr	w3, [x8]
Lloh55:
	ldr	w8, [x9]
Lloh56:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh57:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh59:
	adrp	x5, l_.str.4@PAGE
Lloh60:
	add	x5, x5, l_.str.4@PAGEOFF
	mov	x2, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	mov	x21, x0
	ldr	x0, [x19]
	cbz	w21, LBB0_14
; %bb.13:
Lloh61:
	adrp	x1, l_.str.5@PAGE
Lloh62:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_14:
	mov	w1, #1
	bl	_device_init_wakeup
	mov	x0, x19
	bl	_fsa9480_detect_dev
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh54
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no interrupt provided\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fsa9480_extcon_cable,4,2       ; @fsa9480_extcon_cable
l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate memory for extcon\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to register extcon device\n"

	.comm	_fsa9480_regmap_config,4,2      ; @fsa9480_regmap_config
l_.str.3:                               ; @.str.3
	.asciz	"failed to allocate register map: %d\n"

	.comm	_FSA9480_REG_TIMING1,4,2        ; @FSA9480_REG_TIMING1
	.comm	_TIMING1_ADC_500MS,4,2          ; @TIMING1_ADC_500MS
	.comm	_FSA9480_REG_CTRL,4,2           ; @FSA9480_REG_CTRL
	.comm	_CON_MASK,4,2                   ; @CON_MASK
	.comm	_FSA9480_REG_INT1_MASK,4,2      ; @FSA9480_REG_INT1_MASK
	.comm	_INT1_MASK,4,2                  ; @INT1_MASK
	.comm	_INT_ATTACH,4,2                 ; @INT_ATTACH
	.comm	_INT_DETACH,4,2                 ; @INT_DETACH
	.comm	_FSA9480_REG_INT2_MASK,4,2      ; @FSA9480_REG_INT2_MASK
	.comm	_INT2_MASK,4,2                  ; @INT2_MASK
	.comm	_fsa9480_irq_handler,4,2        ; @fsa9480_irq_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.4:                               ; @.str.4
	.asciz	"fsa9480"

l_.str.5:                               ; @.str.5
	.asciz	"failed to request IRQ\n"

	.no_dead_strip	_fsa9480_probe
.subsections_via_symbols
