	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jack_detect_update
_jack_detect_update:                    ## @jack_detect_update
	.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
	cmpl	$0, (%rsi)
	je	LBB0_11
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_AC_PINSENSE_PRESENCE@GOTPCREL(%rip), %r15
	cmpq	$0, 40(%rbx)
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:
	movl	(%r15), %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:
	movl	32(%rbx), %esi
	movq	%r14, %rdi
	callq	_read_pin_sense
LBB0_5:
	movl	%eax, 16(%rbx)
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_snd_hda_jack_detect
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, 16(%rbx)
LBB0_8:
	movl	$0, (%rbx)
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	callq	_snd_hda_jack_tbl_get
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, %rbx
	movl	$1, (%rax)
	cmpq	$0, 40(%rbx)
	jne	LBB0_3
	jmp	LBB0_4
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_PINSENSE_PRESENCE,4,2       ## @AC_PINSENSE_PRESENCE
	.no_dead_strip	_jack_detect_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jack_detect_update
_jack_detect_update:                    ; @jack_detect_update
	.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
	ldr	w8, [x1]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w21, #1
Lloh0:
	adrp	x22, _AC_PINSENSE_PRESENCE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AC_PINSENSE_PRESENCE@GOTPAGEOFF]
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_3
LBB0_2:
	ldr	w0, [x22]
	b	LBB0_4
LBB0_3:
	ldr	w1, [x20, #32]
	mov	x0, x19
	bl	_read_pin_sense
LBB0_4:
	str	w0, [x20, #16]
	ldr	x1, [x20, #24]
	cbz	x1, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_snd_hda_jack_detect
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w8, [x22]
	ldr	w9, [x20, #16]
	bic	w8, w9, w8
	str	w8, [x20, #16]
LBB0_7:
	str	wzr, [x20]
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_snd_hda_jack_tbl_get
	cbz	x0, LBB0_10
; %bb.9:
	mov	x20, x0
	str	w21, [x0]
	ldr	x8, [x20, #40]
	cbnz	x8, LBB0_2
	b	LBB0_3
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_PINSENSE_PRESENCE,4,2       ; @AC_PINSENSE_PRESENCE
	.no_dead_strip	_jack_detect_update
.subsections_via_symbols
