	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arizona_extcon_set_mode
_arizona_extcon_set_mode:               ## @arizona_extcon_set_mode
	.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
	movl	%esi, %eax
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	cltd
	idivl	(%rdi)
	movl	16(%rdi), %edi
	movq	8(%rbx), %rax
	movslq	%edx, %r14
	leaq	(,%r14,4), %rcx
	leaq	(%rcx,%rcx,2), %r12
	movl	8(%rax,%r12), %esi
	callq	_gpiod_set_value_cansleep
	movl	4(%r15), %edi
	movq	_ARIZONA_MIC_DETECT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARIZONA_MICD_BIAS_SRC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%rbx), %rax
	movl	(%rax,%r12), %eax
	movq	_ARIZONA_MICD_BIAS_SRC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, %ecx
	callq	_regmap_update_bits
	movl	4(%r15), %edi
	movq	_ARIZONA_ACCESSORY_DETECT_MODE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARIZONA_ACCDET_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%rbx), %rax
	movl	4(%rax,%r12), %ecx
	callq	_regmap_update_bits
	movl	%r14d, 4(%rbx)
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ARIZONA_MIC_DETECT_1,4,2       ## @ARIZONA_MIC_DETECT_1
	.comm	_ARIZONA_MICD_BIAS_SRC_MASK,4,2 ## @ARIZONA_MICD_BIAS_SRC_MASK
	.comm	_ARIZONA_MICD_BIAS_SRC_SHIFT,4,2 ## @ARIZONA_MICD_BIAS_SRC_SHIFT
	.comm	_ARIZONA_ACCESSORY_DETECT_MODE_1,4,2 ## @ARIZONA_ACCESSORY_DETECT_MODE_1
	.comm	_ARIZONA_ACCDET_SRC,4,2         ## @ARIZONA_ACCDET_SRC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set jack polarity to %d\n"

	.no_dead_strip	_arizona_extcon_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arizona_extcon_set_mode
_arizona_extcon_set_mode:               ; @arizona_extcon_set_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x21, [x0, #24]
	ldr	w8, [x0]
	sdiv	w9, w1, w8
	msub	w20, w9, w8, w1
	ldr	w0, [x0, #16]
	ldr	x8, [x19, #8]
	mov	w22, #12
	smull	x23, w20, w22
	smaddl	x8, w20, w22, x8
	ldr	w1, [x8, #8]
	bl	_gpiod_set_value_cansleep
Lloh0:
	adrp	x8, _ARIZONA_MIC_DETECT_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARIZONA_MIC_DETECT_1@GOTPAGEOFF]
	ldr	w0, [x21, #4]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ARIZONA_MICD_BIAS_SRC_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARIZONA_MICD_BIAS_SRC_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x23]
Lloh6:
	adrp	x9, _ARIZONA_MICD_BIAS_SRC_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARIZONA_MICD_BIAS_SRC_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w3, w8, w9
	bl	_regmap_update_bits
	ldr	w0, [x21, #4]
Lloh9:
	adrp	x8, _ARIZONA_ACCESSORY_DETECT_MODE_1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARIZONA_ACCESSORY_DETECT_MODE_1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _ARIZONA_ACCDET_SRC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ARIZONA_ACCDET_SRC@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	x8, [x19, #8]
	smaddl	x8, w20, w22, x8
	ldr	w3, [x8, #4]
	bl	_regmap_update_bits
	str	w20, [x19, #4]
	ldr	w0, [x21]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ARIZONA_MIC_DETECT_1,4,2       ; @ARIZONA_MIC_DETECT_1
	.comm	_ARIZONA_MICD_BIAS_SRC_MASK,4,2 ; @ARIZONA_MICD_BIAS_SRC_MASK
	.comm	_ARIZONA_MICD_BIAS_SRC_SHIFT,4,2 ; @ARIZONA_MICD_BIAS_SRC_SHIFT
	.comm	_ARIZONA_ACCESSORY_DETECT_MODE_1,4,2 ; @ARIZONA_ACCESSORY_DETECT_MODE_1
	.comm	_ARIZONA_ACCDET_SRC,4,2         ; @ARIZONA_ACCDET_SRC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set jack polarity to %d\n"

	.no_dead_strip	_arizona_extcon_set_mode
.subsections_via_symbols
