	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1988_laptop_unsol_event
_ad1988_laptop_unsol_event:             ## @ad1988_laptop_unsol_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	shrl	$26, %esi
	movq	_AD1988_HP_EVENT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movl	$17, %esi
	callq	_snd_hda_jack_detect
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_ad1988_laptop_hp_off@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_ad1988_laptop_hp_on@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_snd_hda_sequence_write         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AD1988_HP_EVENT,4,2            ## @AD1988_HP_EVENT
	.comm	_ad1988_laptop_hp_on,4,2        ## @ad1988_laptop_hp_on
	.comm	_ad1988_laptop_hp_off,4,2       ## @ad1988_laptop_hp_off
	.no_dead_strip	_ad1988_laptop_unsol_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1988_laptop_unsol_event
_ad1988_laptop_unsol_event:             ; @ad1988_laptop_unsol_event
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _AD1988_HP_EVENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD1988_HP_EVENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1, lsr #26
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	mov	w1, #17
	bl	_snd_hda_jack_detect
Lloh3:
	adrp	x8, _ad1988_laptop_hp_off@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ad1988_laptop_hp_off@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ad1988_laptop_hp_on@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ad1988_laptop_hp_on@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snd_hda_sequence_write
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AD1988_HP_EVENT,4,2            ; @AD1988_HP_EVENT
	.comm	_ad1988_laptop_hp_on,4,2        ; @ad1988_laptop_hp_on
	.comm	_ad1988_laptop_hp_off,4,2       ; @ad1988_laptop_hp_off
	.no_dead_strip	_ad1988_laptop_unsol_event
.subsections_via_symbols
