	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx8802_request_acquire
_cx8802_request_acquire:                ## @cx8802_request_acquire
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rcx
	movq	16(%rdi), %rax
	movq	(%rax), %rdx
	movq	_CX88_BOARD_NONE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r8
	cmpq	%r8, %rdx
	je	LBB0_3
## %bb.1:
	cmpq	%rcx, %rdx
	movq	%rdx, %rcx
	jne	LBB0_2
LBB0_3:
	movq	_CX88_MPEG_DVB@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_7
## %bb.4:
	movl	12(%rax), %esi
	movl	%esi, 8(%rax)
	movl	$0, 12(%rax)
	movq	24(%rax), %rbx
	movq	_CX88_VMUX_DVB@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	xorl	%r9d, %r9d
	cmpq	%rsi, (%rbx)
	je	LBB0_5
## %bb.6:
	movl	$1, %r9d
	cmpq	%rsi, 8(%rbx)
	jne	LBB0_7
LBB0_5:
	movl	%r9d, 12(%rax)
LBB0_7:
	movq	8(%rdi), %rsi
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.8:
	incl	16(%rax)
	cmpq	%r8, %rdx
	jne	LBB0_10
## %bb.9:
	movq	%rcx, (%rax)
	callq	*%rsi
LBB0_10:
	movq	_MO_GP0_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_dprintk
	jmp	LBB0_11
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX88_BOARD_NONE,8,3            ## @CX88_BOARD_NONE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CX88_MPEG_DVB,8,3              ## @CX88_MPEG_DVB
	.comm	_CX88_VMUX_DVB,8,3              ## @CX88_VMUX_DVB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Post acquire GPIO=%x\n"

	.comm	_MO_GP0_IO,4,2                  ## @MO_GP0_IO
	.no_dead_strip	_cx8802_request_acquire
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx8802_request_acquire
_cx8802_request_acquire:                ; @cx8802_request_acquire
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0, #16]
	ldr	x10, [x8]
Lloh0:
	adrp	x9, _CX88_BOARD_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CX88_BOARD_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x9]
	ldr	x9, [x0]
	cmp	x10, x11
	b.eq	LBB0_2
; %bb.1:
	cmp	x10, x9
	mov	x9, x10
	b.ne	LBB0_12
LBB0_2:
Lloh3:
	adrp	x12, _CX88_MPEG_DVB@GOTPAGE
Lloh4:
	ldr	x12, [x12, _CX88_MPEG_DVB@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	cmp	x9, x12
	b.ne	LBB0_7
; %bb.3:
	mov	w12, #0
	ldr	w13, [x8, #12]
	stp	w13, wzr, [x8, #8]
	ldr	x13, [x8, #24]
Lloh6:
	adrp	x14, _CX88_VMUX_DVB@GOTPAGE
Lloh7:
	ldr	x14, [x14, _CX88_VMUX_DVB@GOTPAGEOFF]
Lloh8:
	ldr	x14, [x14]
	ldr	x15, [x13]
	cmp	x15, x14
	b.eq	LBB0_6
; %bb.4:
	ldr	x12, [x13, #8]
	cmp	x12, x14
	b.ne	LBB0_7
; %bb.5:
	mov	w12, #1
LBB0_6:
	str	w12, [x8, #12]
LBB0_7:
	ldr	x12, [x0, #8]
	cbz	x12, LBB0_11
; %bb.8:
	ldr	w13, [x8, #16]
	add	w13, w13, #1
	str	w13, [x8, #16]
	cmp	x10, x11
	b.ne	LBB0_10
; %bb.9:
	str	x9, [x8]
	blr	x12
LBB0_10:
Lloh9:
	adrp	x8, _MO_GP0_IO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MO_GP0_IO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cx_read
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CX88_BOARD_NONE,8,3            ; @CX88_BOARD_NONE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CX88_MPEG_DVB,8,3              ; @CX88_MPEG_DVB
	.comm	_CX88_VMUX_DVB,8,3              ; @CX88_VMUX_DVB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Post acquire GPIO=%x\n"

	.comm	_MO_GP0_IO,4,2                  ; @MO_GP0_IO
	.no_dead_strip	_cx8802_request_acquire
.subsections_via_symbols
