	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl2832u_fc0012_tuner_callback
_rtl2832u_fc0012_tuner_callback:        ## @rtl2832u_fc0012_tuner_callback
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movl	%ebx, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$128, %ebx
	jne	LBB0_4
## %bb.1:
	movq	_SYS_GPIO_OUT_VAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_rtl28xxu_rd_reg
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	-36(%rbp), %edx
	movl	%edx, %eax
	orl	$64, %eax
	andl	$191, %edx
	testl	%r15d, %r15d
	cmovel	%eax, %edx
	movl	%edx, -36(%rbp)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rtl28xxu_wr_reg
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_5:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_6:
	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	"cmd=%d arg=%d\n"

	.comm	_SYS_GPIO_OUT_VAL,4,2           ## @SYS_GPIO_OUT_VAL
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_rtl2832u_fc0012_tuner_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl2832u_fc0012_tuner_callback
_rtl2832u_fc0012_tuner_callback:        ; @rtl2832u_fc0012_tuner_callback
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0]
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	cmp	w21, #128
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x22, _SYS_GPIO_OUT_VAL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SYS_GPIO_OUT_VAL@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_rtl28xxu_rd_reg
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
	orr	w9, w8, #0x40
	mov	w10, #191
	and	w8, w8, w10
	cmp	w20, #0
	csel	w2, w9, w8, eq
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rtl28xxu_wr_reg
	mov	x21, x0
	cbnz	w0, LBB0_4
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	ldr	x0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd=%d arg=%d\n"

	.comm	_SYS_GPIO_OUT_VAL,4,2           ; @SYS_GPIO_OUT_VAL
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_rtl2832u_fc0012_tuner_callback
.subsections_via_symbols
