	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cec_pin_allocate_adapter       ## -- Begin function cec_pin_allocate_adapter
	.p2align	4, 0x90
_cec_pin_allocate_adapter:              ## @cec_pin_allocate_adapter
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%r13, 32(%rax)
	leaq	28(%rax), %rdi
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HRTIMER_MODE_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hrtimer_init
	movq	_cec_pin_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_init_waitqueue_head
	movq	_CEC_TIM_CUSTOM_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
	movq	_CEC_CAP_MONITOR_ALL@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_CEC_CAP_MONITOR_PIN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_CEC_MAX_LOG_ADDRS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_cec_pin_adap_ops@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_cec_allocate_adapter
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_4
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	movq	%rbx, (%r14)
	movq	%r14, (%rbx)
	movq	%rbx, %rdi
	callq	_cec_pin_high
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_cec_pin_update
LBB0_4:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_HRTIMER_MODE_REL,4,2           ## @HRTIMER_MODE_REL
	.comm	_cec_pin_timer,4,2              ## @cec_pin_timer
	.comm	_CEC_TIM_CUSTOM_DEFAULT,8,3     ## @CEC_TIM_CUSTOM_DEFAULT
	.comm	_cec_pin_adap_ops,4,2           ## @cec_pin_adap_ops
	.comm	_CEC_CAP_MONITOR_ALL,4,2        ## @CEC_CAP_MONITOR_ALL
	.comm	_CEC_CAP_MONITOR_PIN,4,2        ## @CEC_CAP_MONITOR_PIN
	.comm	_CEC_MAX_LOG_ADDRS,4,2          ## @CEC_MAX_LOG_ADDRS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cec_pin_allocate_adapter       ; -- Begin function cec_pin_allocate_adapter
	.p2align	2
_cec_pin_allocate_adapter:              ; @cec_pin_allocate_adapter
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	x23, [x0, #32]
	add	x0, x0, #28
Lloh3:
	adrp	x8, _CLOCK_MONOTONIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLOCK_MONOTONIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _HRTIMER_MODE_REL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HRTIMER_MODE_REL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_hrtimer_init
Lloh9:
	adrp	x8, _cec_pin_timer@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cec_pin_timer@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	add	x0, x19, #24
	bl	_init_waitqueue_head
Lloh12:
	adrp	x8, _CEC_TIM_CUSTOM_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CEC_TIM_CUSTOM_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #8]
Lloh15:
	adrp	x8, _CEC_CAP_MONITOR_ALL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CEC_CAP_MONITOR_ALL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _CEC_CAP_MONITOR_PIN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CEC_CAP_MONITOR_PIN@GOTPAGEOFF]
	orr	w8, w8, w22
Lloh20:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh21:
	adrp	x8, _CEC_MAX_LOG_ADDRS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CEC_MAX_LOG_ADDRS@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
Lloh24:
	adrp	x0, _cec_pin_adap_ops@GOTPAGE
Lloh25:
	ldr	x0, [x0, _cec_pin_adap_ops@GOTPAGEOFF]
	mov	x1, x21
	mov	x2, x20
	bl	_cec_allocate_adapter
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_kfree
	b	LBB0_5
LBB0_3:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
	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	_ERR_PTR
LBB0_4:
	str	x19, [x20]
	str	x20, [x19]
	mov	x0, x19
	bl	_cec_pin_high
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_cec_pin_update
LBB0_5:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_HRTIMER_MODE_REL,4,2           ; @HRTIMER_MODE_REL
	.comm	_cec_pin_timer,4,2              ; @cec_pin_timer
	.comm	_CEC_TIM_CUSTOM_DEFAULT,8,3     ; @CEC_TIM_CUSTOM_DEFAULT
	.comm	_cec_pin_adap_ops,4,2           ; @cec_pin_adap_ops
	.comm	_CEC_CAP_MONITOR_ALL,4,2        ; @CEC_CAP_MONITOR_ALL
	.comm	_CEC_CAP_MONITOR_PIN,4,2        ; @CEC_CAP_MONITOR_PIN
	.comm	_CEC_MAX_LOG_ADDRS,4,2          ; @CEC_MAX_LOG_ADDRS
.subsections_via_symbols
