	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arizona_extcon_get_micd_configs
_arizona_extcon_get_micd_configs:       ## @arizona_extcon_get_micd_configs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	16(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_device_property_count_u32
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movl	%eax, %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	movl	%r13d, %ecx
	callq	_device_property_read_u32_array
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_12
## %bb.5:
	movl	%r13d, %eax
	movq	%r12, %rdi
	movl	$2863311531, %r12d              ## imm = 0xAAAAAAAB
	imulq	%rax, %r12
	shrq	$33, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %esi
	movl	$24, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	cmpl	$3, %r13d
	jae	LBB0_7
LBB0_11:
	movq	%rax, 8(%r14)
	movl	%r12d, (%r14)
	jmp	LBB0_12
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_12:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%r12d, %ecx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	xorl	%edx, %edx
	movq	_ARIZONA_ACCDET_SRC@GOTPCREL(%rip), %rsi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%edi, 16(%rax,%rdx)
	movq	8(%rbx,%rdx), %rdi
	movq	%rdi, 8(%rax,%rdx)
	movq	16(%rbx,%rdx), %rdi
	movq	%rdi, (%rax,%rdx)
	addq	$24, %rdx
	cmpq	%rdx, %rcx
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx,%rdx)
	movl	$0, %edi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rsi), %edi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wlf,micd-configs"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ARIZONA_ACCDET_SRC,4,2         ## @ARIZONA_ACCDET_SRC
	.no_dead_strip	_arizona_extcon_get_micd_configs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arizona_extcon_get_micd_configs
_arizona_extcon_get_micd_configs:       ; @arizona_extcon_get_micd_configs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x24, x0
	ldr	w0, [x1, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_property_count_u32
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x23, x0
Lloh2:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19, #16]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x23
	bl	_device_property_read_u32_array
	mov	x21, x0
	tbnz	w0, #31, LBB0_11
; %bb.3:
	mov	w8, #43691
	movk	w8, #43690, lsl #16
	umull	x8, w23, w8
	lsr	x22, x8, #33
	ldr	w3, [x25]
	mov	x0, x24
	mov	x1, x22
	mov	w2, #24
	bl	_devm_kcalloc
	cbz	x0, LBB0_10
; %bb.4:
	cmp	w23, #3
	b.lo	LBB0_7
; %bb.5:
	add	x8, x0, #16
	add	x9, x20, #8
Lloh6:
	adrp	x10, _ARIZONA_ACCDET_SRC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ARIZONA_ACCDET_SRC@GOTPAGEOFF]
	mov	w11, w22
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x9, #-8]
	ldr	w13, [x10]
	cmp	x12, #0
	csel	w12, wzr, w13, eq
	str	w12, [x8]
	ldr	x12, [x9]
	stur	x12, [x8, #-8]
	ldr	x12, [x9, #8]
	stur	x12, [x8, #-16]
	add	x8, x8, #24
	add	x9, x9, #24
	subs	x11, x11, #1
	b.ne	LBB0_6
LBB0_7:
	str	x0, [x19, #8]
	str	w22, [x19]
	b	LBB0_11
LBB0_8:
	mov	w21, #0
	b	LBB0_12
LBB0_9:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_10:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x20
	bl	_kfree
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wlf,micd-configs"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ARIZONA_ACCDET_SRC,4,2         ; @ARIZONA_ACCDET_SRC
	.no_dead_strip	_arizona_extcon_get_micd_configs
.subsections_via_symbols
