	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max3355_probe
_max3355_probe:                         ## @max3355_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
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_gpiod_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, (%r14)
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_gpiod_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	movq	%r12, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	movq	%rbx, 16(%r14)
	movq	_max3355_cable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_devm_extcon_dev_allocate
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	8(%r14), %rdi
	jmp	LBB0_5
LBB0_10:
	movq	8(%r14), %rsi
	movq	%r12, %rdi
	callq	_devm_extcon_dev_register
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	(%r14), %rdi
	callq	_gpiod_to_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_13
## %bb.15:
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	_IRQF_NO_SUSPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rax), %r8d
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movl	4(%r12), %r9d
	movq	%r14, (%rsp)
	movq	_max3355_id_irq@GOTPCREL(%rip), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_max3355_id_irq
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_11:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.6(%rip), %rsi
LBB0_14:
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_18
LBB0_16:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movl	%ebx, %r15d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"id"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.1:                               ## @.str.1
	.asciz	"failed to get ID_OUT GPIO\n"

L_.str.2:                               ## @.str.2
	.asciz	"maxim,shdn"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.3:                               ## @.str.3
	.asciz	"failed to get SHDN# GPIO\n"

	.comm	_max3355_cable,4,2              ## @max3355_cable
L_.str.4:                               ## @.str.4
	.asciz	"failed to allocate extcon device\n"

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

L_.str.6:                               ## @.str.6
	.asciz	"failed to translate ID_OUT GPIO to IRQ\n"

	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_NO_SUSPEND,4,2            ## @IRQF_NO_SUSPEND
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.7:                               ## @.str.7
	.asciz	"failed to request ID_OUT IRQ\n"

	.no_dead_strip	_max3355_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max3355_probe
_max3355_probe:                         ; @max3355_probe
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	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
LBB0_5:
	str	x21, [x20]
Lloh13:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.6:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
LBB0_8:
	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
	b	_PTR_ERR
LBB0_9:
	str	x21, [x20, #16]
Lloh20:
	adrp	x8, _max3355_cable@GOTPAGE
Lloh21:
	ldr	x8, [x8, _max3355_cable@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_extcon_dev_allocate
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #8]
	b	LBB0_8
LBB0_11:
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_devm_extcon_dev_register
	tbnz	w0, #31, LBB0_15
; %bb.12:
	ldr	x0, [x20]
	bl	_gpiod_to_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_16
; %bb.13:
Lloh25:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh27:
	adrp	x9, _IRQF_NO_SUSPEND@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IRQF_NO_SUSPEND@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh31:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh34:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh35:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w4, w8, w9
	ldr	w5, [x19, #4]
Lloh37:
	adrp	x3, _max3355_id_irq@GOTPAGE
Lloh38:
	ldr	x3, [x3, _max3355_id_irq@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_18
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x21
	mov	x1, x20
	bl	_max3355_id_irq
	mov	w21, #0
	b	LBB0_4
LBB0_15:
	mov	x21, x0
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_4
LBB0_18:
	mov	x22, x0
Lloh43:
	adrp	x1, l_.str.7@PAGE
Lloh44:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x21, x22
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"id"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.1:                               ; @.str.1
	.asciz	"failed to get ID_OUT GPIO\n"

l_.str.2:                               ; @.str.2
	.asciz	"maxim,shdn"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.3:                               ; @.str.3
	.asciz	"failed to get SHDN# GPIO\n"

	.comm	_max3355_cable,4,2              ; @max3355_cable
l_.str.4:                               ; @.str.4
	.asciz	"failed to allocate extcon device\n"

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

l_.str.6:                               ; @.str.6
	.asciz	"failed to translate ID_OUT GPIO to IRQ\n"

	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_NO_SUSPEND,4,2            ; @IRQF_NO_SUSPEND
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.7:                               ; @.str.7
	.asciz	"failed to request ID_OUT IRQ\n"

	.no_dead_strip	_max3355_probe
.subsections_via_symbols
