	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9035_del_i2c_dev
_af9035_del_i2c_dev:                    ## @af9035_del_i2c_dev
	.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, %r14
	callq	_d_to_priv
	movq	%rax, %r15
	movq	(%r14), %r14
	movq	_AF9035_I2C_CLIENT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	movq	%rdx, %rbx
	shlq	$32, %rbx
	movabsq	$-4294967296, %rax              ## imm = 0xFFFFFFFF00000000
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	subq	$1, %rdx
	jb	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rcx
	addq	%rax, %rbx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r15), %rax
	sarq	$29, %rbx
	movq	(%rax,%rbx), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_module_put
	movq	%r14, %rdi
	callq	_i2c_unregister_device
	movq	(%r15), %rax
	movq	$0, (%rax,%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$-1, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AF9035_I2C_CLIENT_MAX,4,2      ## @AF9035_I2C_CLIENT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"num=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"I2C client out of index\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed\n"

	.no_dead_strip	_af9035_del_i2c_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9035_del_i2c_dev
_af9035_del_i2c_dev:                    ; @af9035_del_i2c_dev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	_d_to_priv
	mov	x19, x0
	ldr	x20, [x20]
Lloh0:
	adrp	x8, _AF9035_I2C_CLIENT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF9035_I2C_CLIENT_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	sub	x9, x8, #1
	lsl	x21, x8, #32
	mov	x10, #-4294967296
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmn	x9, #1
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x11, [x19]
	ldr	x11, [x11, x9, lsl #3]
	sub	x9, x9, #1
	add	x21, x21, x10
	sub	w8, w8, #1
	cbz	x11, LBB0_1
; %bb.3:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	x8, [x19]
	asr	x21, x21, #29
	ldr	x20, [x8, x21]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_module_put
	mov	x0, x20
	bl	_i2c_unregister_device
	ldr	x8, [x19]
	str	xzr, [x8, x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	mov	w8, #-1
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_dev_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AF9035_I2C_CLIENT_MAX,4,2      ; @AF9035_I2C_CLIENT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"num=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"I2C client out of index\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed\n"

	.no_dead_strip	_af9035_del_i2c_dev
.subsections_via_symbols
