	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si4713_ioctl                   ## -- Begin function si4713_ioctl
	.p2align	4, 0x90
_si4713_ioctl:                          ## @si4713_ioctl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_to_si4713_device
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mutex_lock
	cmpl	$128, %ebx
	jne	LBB0_9
## %bb.3:
	movl	4(%r14), %edi
	callq	_v4l2_to_si4713
	cmpl	$0, 8(%r15)
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_si4713_tx_tune_measure
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_si4713_update_tune_status
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	xorl	%ebx, %ebx
LBB0_8:
	movl	4(%r15), %eax
	movl	%eax, (%r14)
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %ebx
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movslq	%ebx, %rax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si4713_ioctl                   ; -- Begin function si4713_ioctl
	.p2align	2
_si4713_ioctl:                          ; @si4713_ioctl
	.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	x20, x2
	mov	x21, x1
	bl	_to_si4713_device
	cbz	x20, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_mutex_lock
	cmp	w21, #128
	b.ne	LBB0_6
; %bb.2:
	ldr	w0, [x20, #4]
	bl	_v4l2_to_si4713
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_7
; %bb.3:
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_si4713_tx_tune_measure
	tbnz	w0, #31, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_si4713_update_tune_status
	mov	x21, x0
	tbz	w0, #31, LBB0_8
	b	LBB0_10
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_11
LBB0_6:
Lloh3:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_7:
	mov	w21, #0
LBB0_8:
	ldr	w8, [x19, #4]
	str	w8, [x20]
	b	LBB0_10
LBB0_9:
	mov	x21, x0
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	sxtw	x0, w21
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
.subsections_via_symbols
