	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cec_gpio_probe
_cec_gpio_probe:                        ## @cec_gpio_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 56(%rax)
	movq	_GPIOD_OUT_HIGH_OPEN_DRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 48(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	48(%r15), %rdi
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	callq	_gpiod_to_irq
	movq	%rax, 40(%r15)
	movq	_GPIOD_IN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 32(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	32(%r15), %rdi
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%r15), %rdi
	jmp	LBB0_9
LBB0_7:
	movq	_CEC_CAP_DEFAULTS@GOTPCREL(%rip), %rax
	movq	_CEC_CAP_PHYS_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CEC_CAP_MONITOR_ALL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	4(%r14), %edx
	movq	_CEC_CAP_MONITOR_PIN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_cec_gpio_pin_ops@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_cec_pin_allocate_adapter
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	(%r15), %rdi
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	movq	(%r15), %rax
	movq	40(%r15), %rsi
	movq	_cec_gpio_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %r12
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%r12), %ecx
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%r15, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.11:
	movq	(%r15), %rdi
	callq	_cec_gpio_disable_irq
	movq	32(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_gpiod_to_irq
	movq	%rax, 24(%r15)
	movq	_cec_hpd_gpio_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_cec_hpd_gpio_irq_handler_thread@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rsi
	movl	(%r13), %r8d
	orl	(%rsi), %r8d
	orl	(%r12), %r8d
	movq	%r15, (%rsp)
	leaq	L_.str.3(%rip), %r9
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_request_threaded_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
LBB0_13:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_gpiod_to_irq
	movq	%rax, 8(%r15)
	movq	_cec_5v_gpio_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_cec_5v_gpio_irq_handler_thread@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rsi
	movl	(%r13), %r8d
	orl	(%rsi), %r8d
	orl	(%r12), %r8d
	movq	%r15, (%rsp)
	leaq	L_.str.4(%rip), %r9
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_request_threaded_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
LBB0_15:
	movq	(%r15), %rdi
	movq	%r14, %rsi
	callq	_cec_register_adapter
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	callq	_cec_delete_adapter
	jmp	LBB0_18
LBB0_17:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	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	"cec"

	.comm	_GPIOD_OUT_HIGH_OPEN_DRAIN,4,2  ## @GPIOD_OUT_HIGH_OPEN_DRAIN
L_.str.1:                               ## @.str.1
	.asciz	"hpd"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.2:                               ## @.str.2
	.asciz	"v5"

	.comm	_cec_gpio_pin_ops,4,2           ## @cec_gpio_pin_ops
	.comm	_CEC_CAP_DEFAULTS,4,2           ## @CEC_CAP_DEFAULTS
	.comm	_CEC_CAP_PHYS_ADDR,4,2          ## @CEC_CAP_PHYS_ADDR
	.comm	_CEC_CAP_MONITOR_ALL,4,2        ## @CEC_CAP_MONITOR_ALL
	.comm	_CEC_CAP_MONITOR_PIN,4,2        ## @CEC_CAP_MONITOR_PIN
	.comm	_cec_gpio_irq_handler,4,2       ## @cec_gpio_irq_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_cec_hpd_gpio_irq_handler,4,2   ## @cec_hpd_gpio_irq_handler
	.comm	_cec_hpd_gpio_irq_handler_thread,4,2 ## @cec_hpd_gpio_irq_handler_thread
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"hpd-gpio"

	.comm	_cec_5v_gpio_irq_handler,4,2    ## @cec_5v_gpio_irq_handler
	.comm	_cec_5v_gpio_irq_handler_thread,4,2 ## @cec_5v_gpio_irq_handler_thread
L_.str.4:                               ## @.str.4
	.asciz	"v5-gpio"

	.no_dead_strip	_cec_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cec_gpio_probe
_cec_gpio_probe:                        ; @cec_gpio_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #56]
Lloh3:
	adrp	x8, _GPIOD_OUT_HIGH_OPEN_DRAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIOD_OUT_HIGH_OPEN_DRAIN@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
	str	x0, [x20, #48]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #48]
	cbnz	x8, LBB0_10
; %bb.2:
	bl	_gpiod_to_irq
	str	x0, [x20, #40]
Lloh8:
	adrp	x21, _GPIOD_IN@GOTPAGE
Lloh9:
	ldr	x21, [x21, _GPIOD_IN@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x0, [x20, #32]
	b	LBB0_10
LBB0_4:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w2, [x21]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20, #16]
	b	LBB0_10
LBB0_8:
	ldr	w2, [x19, #4]
Lloh17:
	adrp	x8, _CEC_CAP_DEFAULTS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CEC_CAP_DEFAULTS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _CEC_CAP_PHYS_ADDR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CEC_CAP_PHYS_ADDR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _CEC_CAP_MONITOR_ALL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CEC_CAP_MONITOR_ALL@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _CEC_CAP_MONITOR_PIN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CEC_CAP_MONITOR_PIN@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh29:
	adrp	x0, _cec_gpio_pin_ops@GOTPAGE
Lloh30:
	ldr	x0, [x0, _cec_gpio_pin_ops@GOTPAGEOFF]
	mov	x1, x20
	bl	_cec_pin_allocate_adapter
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x0, [x20]
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_11:
	ldr	x1, [x20, #40]
Lloh31:
	adrp	x8, _cec_gpio_irq_handler@GOTPAGE
Lloh32:
	ldr	x8, [x8, _cec_gpio_irq_handler@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x22, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh35:
	ldr	x22, [x22, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh36:
	adrp	x23, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh37:
	ldr	x23, [x23, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w3, w9, w8
	ldr	x8, [x20]
	ldr	w4, [x8]
	mov	x0, x19
	mov	x5, x20
	bl	_devm_request_irq
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.12:
	ldr	x0, [x20]
	bl	_cec_gpio_disable_irq
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_gpiod_to_irq
	mov	x1, x0
Lloh38:
	adrp	x8, _cec_hpd_gpio_irq_handler@GOTPAGE
Lloh39:
	ldr	x8, [x8, _cec_hpd_gpio_irq_handler@GOTPAGEOFF]
	str	x0, [x20, #24]
Lloh40:
	ldr	w2, [x8]
Lloh41:
	adrp	x8, _cec_hpd_gpio_irq_handler_thread@GOTPAGE
Lloh42:
	ldr	x8, [x8, _cec_hpd_gpio_irq_handler_thread@GOTPAGEOFF]
Lloh43:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh44:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh45:
	ldr	w3, [x8]
Lloh46:
	ldr	w8, [x9]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w4, w8, w9
Lloh47:
	adrp	x5, l_.str.3@PAGE
Lloh48:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x6, x20
	bl	_devm_request_threaded_irq
	mov	x21, x0
	cbnz	w0, LBB0_5
LBB0_14:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_gpiod_to_irq
	mov	x1, x0
Lloh49:
	adrp	x8, _cec_5v_gpio_irq_handler@GOTPAGE
Lloh50:
	ldr	x8, [x8, _cec_5v_gpio_irq_handler@GOTPAGEOFF]
	str	x0, [x20, #8]
Lloh51:
	ldr	w2, [x8]
Lloh52:
	adrp	x8, _cec_5v_gpio_irq_handler_thread@GOTPAGE
Lloh53:
	ldr	x8, [x8, _cec_5v_gpio_irq_handler_thread@GOTPAGEOFF]
Lloh54:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh55:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh56:
	ldr	w3, [x8]
Lloh57:
	ldr	w8, [x9]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w4, w8, w9
Lloh58:
	adrp	x5, l_.str.4@PAGE
Lloh59:
	add	x5, x5, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x6, x20
	bl	_devm_request_threaded_irq
	mov	x21, x0
	cbnz	w0, LBB0_5
LBB0_16:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_cec_register_adapter
	mov	x21, x0
	cbz	w0, LBB0_18
; %bb.17:
	ldr	x0, [x20]
	bl	_cec_delete_adapter
	b	LBB0_5
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh45
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh56
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.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	"cec"

	.comm	_GPIOD_OUT_HIGH_OPEN_DRAIN,4,2  ; @GPIOD_OUT_HIGH_OPEN_DRAIN
l_.str.1:                               ; @.str.1
	.asciz	"hpd"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.2:                               ; @.str.2
	.asciz	"v5"

	.comm	_cec_gpio_pin_ops,4,2           ; @cec_gpio_pin_ops
	.comm	_CEC_CAP_DEFAULTS,4,2           ; @CEC_CAP_DEFAULTS
	.comm	_CEC_CAP_PHYS_ADDR,4,2          ; @CEC_CAP_PHYS_ADDR
	.comm	_CEC_CAP_MONITOR_ALL,4,2        ; @CEC_CAP_MONITOR_ALL
	.comm	_CEC_CAP_MONITOR_PIN,4,2        ; @CEC_CAP_MONITOR_PIN
	.comm	_cec_gpio_irq_handler,4,2       ; @cec_gpio_irq_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_cec_hpd_gpio_irq_handler,4,2   ; @cec_hpd_gpio_irq_handler
	.comm	_cec_hpd_gpio_irq_handler_thread,4,2 ; @cec_hpd_gpio_irq_handler_thread
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"hpd-gpio"

	.comm	_cec_5v_gpio_irq_handler,4,2    ; @cec_5v_gpio_irq_handler
	.comm	_cec_5v_gpio_irq_handler_thread,4,2 ; @cec_5v_gpio_irq_handler_thread
l_.str.4:                               ; @.str.4
	.asciz	"v5-gpio"

	.no_dead_strip	_cec_gpio_probe
.subsections_via_symbols
