	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9035_frontend_attach
_af9035_frontend_attach:                ## @af9035_frontend_attach
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_adap_to_priv
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_adap_to_d
	movq	%rax, %r15
	movq	8(%rax), %r14
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	(%rbx), %rdx
	movslq	(%r12), %rax
	leaq	(%rax,%rax,2), %rsi
	cmpl	$0, 16(%rdx,%rsi,8)
	je	LBB0_1
## %bb.3:
	movq	8(%r12), %rdi
	leaq	(%rdx,%rsi,8), %rcx
	movq	%rdi, 8(%rdx,%rsi,8)
	movq	%rbx, %rdi
	addq	$16, %rdi
	movq	%rdi, (%rdx,%rsi,8)
	movq	8(%rbx), %rdx
	movl	(%rdx,%rax,4), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r15, %r8
	callq	_af9035_add_i2c_dev
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.4:
	movq	8(%r12), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.5:
	movq	$0, 8(%rcx)
	movq	_af9035_frontend_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%rax), %rax
	movl	%ecx, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_dbg
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adap->id=%d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"af9033"

	.comm	_af9035_frontend_callback,4,2   ## @af9035_frontend_callback
L_.str.2:                               ## @.str.2
	.asciz	"failed=%d\n"

	.no_dead_strip	_af9035_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9035_frontend_attach
_af9035_frontend_attach:                ; @af9035_frontend_attach
	.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, x0
	bl	_adap_to_priv
	mov	x22, x0
	mov	x0, x20
	bl	_adap_to_d
	mov	x21, x0
	ldr	x19, [x0, #8]
	ldr	w2, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x9, [x22]
	ldrsw	x8, [x20]
	mov	w10, #24
	madd	x10, x8, x10, x9
	ldr	w10, [x10, #16]
	cbz	w10, LBB0_4
; %bb.1:
	ldr	x10, [x20, #8]
	mov	w11, #24
	madd	x3, x8, x11, x9
	add	x9, x22, #16
	stp	x9, x10, [x3]
	ldr	x9, [x22, #8]
	ldr	w2, [x9, x8, lsl #2]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x4, x21
	bl	_af9035_add_i2c_dev
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.3:
	mov	w21, #0
	str	xzr, [x9, #8]
Lloh4:
	adrp	x9, _af9035_frontend_callback@GOTPAGE
Lloh5:
	ldr	x9, [x9, _af9035_frontend_callback@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	ldr	x8, [x8]
	str	w9, [x8]
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
LBB0_6:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adap->id=%d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"af9033"

	.comm	_af9035_frontend_callback,4,2   ; @af9035_frontend_callback
l_.str.2:                               ; @.str.2
	.asciz	"failed=%d\n"

	.no_dead_strip	_af9035_frontend_attach
.subsections_via_symbols
