	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si4713_ioctl
_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, %r15
	movl	%esi, %ebx
	callq	_to_si4713_device
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_8
## %bb.3:
	movq	%rax, %r14
	movl	4(%r15), %edi
	callq	_v4l2_to_si4713
	cmpl	$0, 4(%r14)
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_si4713_tx_tune_measure
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	callq	_si4713_update_tune_status
	testl	%eax, %eax
	jns	LBB0_7
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_4:
	xorl	%eax, %eax
LBB0_7:
	movl	(%r14), %ecx
	movl	%ecx, (%r15)
LBB0_9:
	cltq
LBB0_10:
	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
	.no_dead_strip	_si4713_ioctl
.subsections_via_symbols

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