	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9035_tuner_detach
_af9035_tuner_detach:                   ## @af9035_tuner_detach
	.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	%rdi, %rbx
	callq	_adap_to_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_adap_to_d
	movq	%rax, %r14
	movq	(%rax), %rdi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	16(%r15), %rcx
	movq	(%rbx), %rax
	movl	(%rcx,%rax,4), %ecx
	leal	-129(%rcx), %edx
	cmpl	$6, %edx
	jae	LBB0_1
## %bb.8:
	movq	(%r15), %rcx
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_module_put
	movq	%rbx, %rdi
	callq	_platform_device_unregister
	jmp	LBB0_10
LBB0_1:
	cmpl	$135, %ecx
	je	LBB0_3
## %bb.2:
	cmpl	$128, %ecx
	jne	LBB0_10
LBB0_3:
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	cmpq	$1, %rax
	jne	LBB0_10
## %bb.5:
	movq	8(%r15), %rax
	cmpl	$0, 12(%rax)
	je	LBB0_10
LBB0_6:
	movq	%r14, %rdi
	callq	_af9035_del_i2c_dev
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	8(%r15), %rax
	cmpl	$0, 4(%rax)
	jne	LBB0_6
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adap->id=%d\n"

	.no_dead_strip	_af9035_tuner_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9035_tuner_detach
_af9035_tuner_detach:                   ; @af9035_tuner_detach
	.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	x21, x0
	bl	_adap_to_priv
	mov	x20, x0
	mov	x0, x21
	bl	_adap_to_d
	mov	x19, x0
	ldr	x0, [x0]
	ldr	x2, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x9, [x20, #16]
	ldr	x8, [x21]
	ldr	w9, [x9, x8, lsl #2]
	sub	w10, w9, #129
	cmp	w10, #6
	b.hs	LBB0_3
; %bb.1:
	ldr	x9, [x20]
	ldr	x19, [x9, x8, lsl #3]
	cbz	x19, LBB0_9
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_module_put
	mov	x0, x19
	bl	_platform_device_unregister
	b	LBB0_9
LBB0_3:
	cmp	w9, #135
	b.eq	LBB0_5
; %bb.4:
	cmp	w9, #128
	b.ne	LBB0_9
LBB0_5:
	cbz	x8, LBB0_10
; %bb.6:
	cmp	x8, #1
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #12]
	cbz	w8, LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_af9035_del_i2c_dev
LBB0_9:
	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
LBB0_10:
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #4]
	cbnz	w8, LBB0_8
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adap->id=%d\n"

	.no_dead_strip	_af9035_tuner_detach
.subsections_via_symbols
