	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_gpio
_print_gpio:                            ## @print_gpio
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	8(%rsi), %esi
	movq	_AC_PAR_GPIO_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_snd_hda_param_read
	movl	%eax, %r13d
	movq	_AC_GPIO_IO_COUNT@GOTPCREL(%rip), %rdx
	movq	_AC_GPIO_O_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movq	_AC_GPIO_O_COUNT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	movq	_AC_GPIO_I_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	andl	%r13d, %r8d
	movq	_AC_GPIO_I_COUNT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %r8d
	movl	(%rdx), %edx
	andl	%r13d, %edx
	movq	_AC_GPIO_UNSOLICITED@GOTPCREL(%rip), %rcx
	xorl	%r9d, %r9d
	movl	(%rcx), %ecx
	andl	%r13d, %ecx
	setne	%r9b
	movq	_AC_GPIO_WAKE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	movl	(%rcx), %ecx
	andl	%r13d, %ecx
	setne	%bl
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	pushq	%rbx
	callq	_snd_iprintf
	addq	$16, %rsp
	movq	_AC_GPIO_IO_COUNT@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	je	LBB0_6
## %bb.1:
	cmpl	$8, %r13d
	jg	LBB0_6
## %bb.2:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_AC_VERB_GET_GPIO_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_AC_VERB_GET_GPIO_DIRECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_AC_VERB_GET_GPIO_WAKE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_AC_VERB_GET_GPIO_UNSOLICITED_RSP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	movl	%r12d, %ebx
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_AC_VERB_GET_GPIO_STICKY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %r13d
	movq	_AC_VERB_GET_GPIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_5
## %bb.3:
	movl	%eax, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%ecx, %ecx
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	btl	%r15d, %eax
	setb	%cl
	xorl	%r8d, %r8d
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	btl	%r15d, %eax
	setb	%r8b
	xorl	%r9d, %r9d
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	btl	%r15d, %eax
	setb	%r9b
	xorl	%r10d, %r10d
	btl	%r15d, %r13d
	setb	%r10b
	xorl	%r11d, %r11d
	btl	%r15d, %r14d
	setb	%r11b
	xorl	%ebx, %ebx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	btl	%r15d, %eax
	setb	%bl
	subq	$8, %rsp
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_snd_iprintf
	addq	$32, %rsp
	incl	%r15d
	cmpl	%r15d, -44(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_4
LBB0_5:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	4(%rbx), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	callq	_print_nid_array
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_print_nid_array                ## TAILCALL
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_PAR_GPIO_CAP,4,2            ## @AC_PAR_GPIO_CAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPIO: io=%d, o=%d, i=%d, unsolicited=%d, wake=%d\n"

	.comm	_AC_GPIO_IO_COUNT,4,2           ## @AC_GPIO_IO_COUNT
	.comm	_AC_GPIO_O_COUNT,4,2            ## @AC_GPIO_O_COUNT
	.comm	_AC_GPIO_O_COUNT_SHIFT,4,2      ## @AC_GPIO_O_COUNT_SHIFT
	.comm	_AC_GPIO_I_COUNT,4,2            ## @AC_GPIO_I_COUNT
	.comm	_AC_GPIO_I_COUNT_SHIFT,4,2      ## @AC_GPIO_I_COUNT_SHIFT
	.comm	_AC_GPIO_UNSOLICITED,4,2        ## @AC_GPIO_UNSOLICITED
	.comm	_AC_GPIO_WAKE,4,2               ## @AC_GPIO_WAKE
	.comm	_AC_VERB_GET_GPIO_MASK,4,2      ## @AC_VERB_GET_GPIO_MASK
	.comm	_AC_VERB_GET_GPIO_DIRECTION,4,2 ## @AC_VERB_GET_GPIO_DIRECTION
	.comm	_AC_VERB_GET_GPIO_WAKE_MASK,4,2 ## @AC_VERB_GET_GPIO_WAKE_MASK
	.comm	_AC_VERB_GET_GPIO_UNSOLICITED_RSP_MASK,4,2 ## @AC_VERB_GET_GPIO_UNSOLICITED_RSP_MASK
	.comm	_AC_VERB_GET_GPIO_STICKY_MASK,4,2 ## @AC_VERB_GET_GPIO_STICKY_MASK
	.comm	_AC_VERB_GET_GPIO_DATA,4,2      ## @AC_VERB_GET_GPIO_DATA
L_.str.1:                               ## @.str.1
	.asciz	"  IO[%d]: enable=%d, dir=%d, wake=%d, sticky=%d, data=%d, unsol=%d\n"

	.no_dead_strip	_print_gpio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_gpio
_print_gpio:                            ; @print_gpio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x28, x2
	mov	x27, x1
	mov	x21, x0
	ldr	w1, [x1, #8]
Lloh0:
	adrp	x8, _AC_PAR_GPIO_CAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_PAR_GPIO_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x27
	bl	_snd_hda_param_read
	mov	x20, x0
Lloh3:
	adrp	x19, _AC_GPIO_IO_COUNT@GOTPAGE
Lloh4:
	ldr	x19, [x19, _AC_GPIO_IO_COUNT@GOTPAGEOFF]
	ldr	w8, [x19]
	and	w2, w8, w0
Lloh5:
	adrp	x8, _AC_GPIO_O_COUNT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AC_GPIO_O_COUNT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh8:
	adrp	x9, _AC_GPIO_O_COUNT_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AC_GPIO_O_COUNT_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsr	w3, w8, w9
Lloh11:
	adrp	x8, _AC_GPIO_I_COUNT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AC_GPIO_I_COUNT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh14:
	adrp	x9, _AC_GPIO_I_COUNT_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AC_GPIO_I_COUNT_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	lsr	w4, w8, w9
Lloh17:
	adrp	x8, _AC_GPIO_UNSOLICITED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AC_GPIO_UNSOLICITED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w5, ne
Lloh20:
	adrp	x8, _AC_GPIO_WAKE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AC_GPIO_WAKE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w6, ne
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_snd_iprintf
	ldr	w8, [x19]
	and	w19, w8, w20
	cmp	w19, #0
	ccmp	w19, #8, #0, ne
	b.le	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
Lloh25:
	adrp	x8, _AC_VERB_GET_GPIO_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AC_VERB_GET_GPIO_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x0, x27
	mov	x1, x28
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
	mov	x22, x0
Lloh28:
	adrp	x8, _AC_VERB_GET_GPIO_DIRECTION@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AC_VERB_GET_GPIO_DIRECTION@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x0, x27
	mov	x1, x28
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
	mov	x23, x0
Lloh31:
	adrp	x8, _AC_VERB_GET_GPIO_WAKE_MASK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AC_VERB_GET_GPIO_WAKE_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	mov	x0, x27
	mov	x1, x28
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
	mov	x24, x0
Lloh34:
	adrp	x8, _AC_VERB_GET_GPIO_UNSOLICITED_RSP_MASK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AC_VERB_GET_GPIO_UNSOLICITED_RSP_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	mov	x0, x27
	mov	x1, x28
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
	mov	x25, x0
Lloh37:
	adrp	x8, _AC_VERB_GET_GPIO_STICKY_MASK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AC_VERB_GET_GPIO_STICKY_MASK@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
	mov	x0, x27
	mov	x1, x28
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
	mov	x26, x0
Lloh40:
	adrp	x8, _AC_VERB_GET_GPIO_DATA@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AC_VERB_GET_GPIO_DATA@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
	str	x27, [sp, #24]                  ; 8-byte Folded Spill
	mov	x0, x27
	str	w28, [sp, #20]                  ; 4-byte Folded Spill
	mov	x1, x28
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x27, x0
	mov	w28, #0
Lloh43:
	adrp	x20, l_.str.1@PAGE
Lloh44:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w22, w28
	and	w3, w8, #0x1
	lsr	w8, w23, w28
	and	w4, w8, #0x1
	lsr	w8, w24, w28
	and	w5, w8, #0x1
	lsr	w8, w26, w28
	and	w6, w8, #0x1
	lsr	w8, w27, w28
	and	w8, w8, #0x1
	lsr	w9, w25, w28
	and	w9, w9, #0x1
	stp	x8, x9, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x28
	bl	_snd_iprintf
	add	w28, w28, #1
	cmp	w19, w28
	b.ne	LBB0_4
LBB0_5:
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	add	x3, x19, #4
	mov	x0, x21
	mov	x1, x19
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
	mov	x2, x20
	bl	_print_nid_array
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_print_nid_array
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_PAR_GPIO_CAP,4,2            ; @AC_PAR_GPIO_CAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPIO: io=%d, o=%d, i=%d, unsolicited=%d, wake=%d\n"

	.comm	_AC_GPIO_IO_COUNT,4,2           ; @AC_GPIO_IO_COUNT
	.comm	_AC_GPIO_O_COUNT,4,2            ; @AC_GPIO_O_COUNT
	.comm	_AC_GPIO_O_COUNT_SHIFT,4,2      ; @AC_GPIO_O_COUNT_SHIFT
	.comm	_AC_GPIO_I_COUNT,4,2            ; @AC_GPIO_I_COUNT
	.comm	_AC_GPIO_I_COUNT_SHIFT,4,2      ; @AC_GPIO_I_COUNT_SHIFT
	.comm	_AC_GPIO_UNSOLICITED,4,2        ; @AC_GPIO_UNSOLICITED
	.comm	_AC_GPIO_WAKE,4,2               ; @AC_GPIO_WAKE
	.comm	_AC_VERB_GET_GPIO_MASK,4,2      ; @AC_VERB_GET_GPIO_MASK
	.comm	_AC_VERB_GET_GPIO_DIRECTION,4,2 ; @AC_VERB_GET_GPIO_DIRECTION
	.comm	_AC_VERB_GET_GPIO_WAKE_MASK,4,2 ; @AC_VERB_GET_GPIO_WAKE_MASK
	.comm	_AC_VERB_GET_GPIO_UNSOLICITED_RSP_MASK,4,2 ; @AC_VERB_GET_GPIO_UNSOLICITED_RSP_MASK
	.comm	_AC_VERB_GET_GPIO_STICKY_MASK,4,2 ; @AC_VERB_GET_GPIO_STICKY_MASK
	.comm	_AC_VERB_GET_GPIO_DATA,4,2      ; @AC_VERB_GET_GPIO_DATA
l_.str.1:                               ; @.str.1
	.asciz	"  IO[%d]: enable=%d, dir=%d, wake=%d, sticky=%d, data=%d, unsol=%d\n"

	.no_dead_strip	_print_gpio
.subsections_via_symbols
