	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib9000_fw_set_output_mode
_dib9000_fw_set_output_mode:            ## @dib9000_fw_set_output_mode
	.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
	movl	%esi, %r14d
	movq	%rdi, %rsi
	movq	(%rdi), %r15
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	leal	-128(%r14), %ecx
	cmpl	$5, %ecx
	ja	LBB0_4
## %bb.1:
	movl	$1280, %eax                     ## imm = 0x500
	movl	$1024, %edx                     ## imm = 0x400
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	$1152, %edx                     ## imm = 0x480
	jmp	LBB0_8
LBB0_4:
	movq	8(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_7:
	movl	$1088, %edx                     ## imm = 0x440
	jmp	LBB0_8
LBB0_3:
	movl	$1344, %edx                     ## imm = 0x540
LBB0_8:
	movq	%r15, %rdi
	movl	$1795, %esi                     ## imm = 0x703
	callq	_dib9000_write_word
	movq	%r15, %rdi
	movl	$295, %esi                      ## imm = 0x127
	callq	_dib9000_read_word
                                        ## kill: def $eax killed $eax def $rax
	andl	$16, %eax
	xorl	%ecx, %ecx
	cmpl	$0, (%r15)
	setne	%cl
	shll	$5, %ecx
	leal	(%rcx,%rax), %edx
	addl	$2, %edx
	movq	%r15, %rdi
	movl	$295, %esi                      ## imm = 0x127
	jmp	LBB0_9
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	movq	%r15, %rdi
	movl	$1795, %esi                     ## imm = 0x703
	movl	%eax, %edx
LBB0_9:
	callq	_dib9000_write_word
	movl	%r14d, %edi
	callq	_to_fw_output_mode
	movl	%eax, -28(%rbp)
	movq	_OUT_MSG_SET_OUTPUT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_dib9000_mbx_send
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting output mode for demod %p to %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unhandled output_mode passed to be set for demod %p\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OUT_MSG_SET_OUTPUT_MODE,4,2    ## @OUT_MSG_SET_OUTPUT_MODE
	.no_dead_strip	_dib9000_fw_set_output_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib9000_fw_set_output_mode
_dib9000_fw_set_output_mode:            ; @dib9000_fw_set_output_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x1, x0
	ldr	x19, [x0]
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	sub	w9, w20, #128
	cmp	w9, #5
	b.hi	LBB0_3
; %bb.1:
	mov	w8, #1280
	mov	w2, #1024
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w2, #1152
	b	LBB0_6
LBB0_3:
	ldr	x1, [x19, #8]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
	mov	w2, #1088
	b	LBB0_6
LBB0_5:
	mov	w2, #1344
LBB0_6:
	mov	x0, x19
	mov	w1, #1795
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #295
	bl	_dib9000_read_word
	and	w8, w0, #0x10
	ldr	w9, [x19]
	mov	w10, #34
	mov	w11, #2
	cmp	w9, #0
	csel	w9, w11, w10, eq
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #295
	b	LBB0_9
LBB0_7:
	mov	w8, #0
LBB0_8:
	mov	x0, x19
	mov	w1, #1795
	mov	x2, x8
LBB0_9:
	bl	_dib9000_write_word
	mov	x0, x20
	bl	_to_fw_output_mode
	str	w0, [sp, #12]
Lloh9:
	adrp	x8, _OUT_MSG_SET_OUTPUT_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OUT_MSG_SET_OUTPUT_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_dib9000_mbx_send
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting output mode for demod %p to %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unhandled output_mode passed to be set for demod %p\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OUT_MSG_SET_OUTPUT_MODE,4,2    ; @OUT_MSG_SET_OUTPUT_MODE
	.no_dead_strip	_dib9000_fw_set_output_mode
.subsections_via_symbols
