	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tuner_s_type_addr
_tuner_s_type_addr:                     ## @tuner_s_type_addr
	.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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_to_tuner
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	(%rbx), %rsi
	movl	8(%rbx), %edx
	movq	16(%rbx), %rcx
	movl	24(%rbx), %r8d
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	(%r15), %rsi
	movq	_UNSET@GOTPCREL(%rip), %rax
	movslq	8(%rbx), %rcx
	cmpq	(%rax), %rsi
	jne	LBB0_3
## %bb.1:
	movq	_ADDR_UNSET@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_3
## %bb.2:
	movslq	8(%r15), %rax
	movq	16(%rbx), %rdx
	testq	%rax, %rdx
	jne	LBB0_5
LBB0_3:
	cmpq	%rcx, (%r14)
	jne	LBB0_6
## %bb.4:
	movq	16(%rbx), %rdx
LBB0_5:
	movq	(%rbx), %rsi
	movl	24(%rbx), %ecx
	movl	28(%rbx), %r8d
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_set_type
	jmp	LBB0_7
LBB0_6:
	movl	8(%r15), %edx
	movl	16(%rbx), %r8d
	leaq	L_.str.1(%rip), %rdi
	callq	_dprintk
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Calling set_type_addr for type=%d, addr=0x%02x, mode=0x%02x, config=%p\n"

	.comm	_UNSET,8,3                      ## @UNSET
	.comm	_ADDR_UNSET,8,3                 ## @ADDR_UNSET
L_.str.1:                               ## @.str.1
	.asciz	"set addr discarded for type %i, mask %x. Asked to change tuner at addr 0x%02x, with mask %x\n"

	.no_dead_strip	_tuner_s_type_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tuner_s_type_addr
_tuner_s_type_addr:                     ; @tuner_s_type_addr
	.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, x1
	mov	x20, x0
	bl	_to_tuner
	mov	x21, x0
	mov	x0, x20
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	ldr	x1, [x19]
	ldr	w2, [x19, #8]
	ldr	x3, [x19, #16]
	ldr	w4, [x19, #24]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	x1, [x21]
Lloh2:
	adrp	x8, _UNSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UNSET@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldrsw	x3, [x19, #8]
Lloh5:
	adrp	x9, _ADDR_UNSET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ADDR_UNSET@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x1, x8
	ccmp	x9, x3, #0, eq
	b.ne	LBB0_2
; %bb.1:
	ldrsw	x8, [x21, #8]
	ldr	x2, [x19, #16]
	tst	x2, x8
	b.ne	LBB0_4
LBB0_2:
	ldr	x8, [x20]
	cmp	x8, x3
	b.ne	LBB0_5
; %bb.3:
	ldr	x2, [x19, #16]
LBB0_4:
	ldr	x1, [x19]
	ldp	w3, w4, [x19, #24]
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_set_type
	b	LBB0_6
LBB0_5:
	ldr	w2, [x21, #8]
	ldr	w4, [x19, #16]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
LBB0_6:
	mov	w0, #0
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Calling set_type_addr for type=%d, addr=0x%02x, mode=0x%02x, config=%p\n"

	.comm	_UNSET,8,3                      ; @UNSET
	.comm	_ADDR_UNSET,8,3                 ; @ADDR_UNSET
l_.str.1:                               ; @.str.1
	.asciz	"set addr discarded for type %i, mask %x. Asked to change tuner at addr 0x%02x, with mask %x\n"

	.no_dead_strip	_tuner_s_type_addr
.subsections_via_symbols
