	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macgpio_resume
_macgpio_resume:                        ## @macgpio_resume
	.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
	callq	_device_get_softc
	movq	%rax, %r15
	movl	8(%rax), %edi
	movq	_GPIO_LEVELS_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r15), %rax
	movl	(%rax), %edx
	callq	_bus_write_4
	movl	8(%r15), %edi
	movq	_GPIO_LEVELS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r15), %rax
	movl	4(%rax), %edx
	callq	_bus_write_4
	movq	_GPIO_COUNT@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_GPIO_BASE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	callq	_bus_write_1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_GPIO_EXTINT_COUNT@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_GPIO_EXTINT_BASE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	callq	_bus_write_1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_LEVELS_0,4,2              ## @GPIO_LEVELS_0
	.comm	_GPIO_LEVELS_1,4,2              ## @GPIO_LEVELS_1
	.comm	_GPIO_COUNT,4,2                 ## @GPIO_COUNT
	.comm	_GPIO_BASE,8,3                  ## @GPIO_BASE
	.comm	_GPIO_EXTINT_COUNT,4,2          ## @GPIO_EXTINT_COUNT
	.comm	_GPIO_EXTINT_BASE,8,3           ## @GPIO_EXTINT_BASE
	.no_dead_strip	_macgpio_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macgpio_resume
_macgpio_resume:                        ; @macgpio_resume
	.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
	bl	_device_get_softc
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _GPIO_LEVELS_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIO_LEVELS_0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x19, #24]
	ldr	w2, [x8]
	bl	_bus_write_4
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _GPIO_LEVELS_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIO_LEVELS_1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x19, #24]
	ldr	w2, [x8, #4]
	bl	_bus_write_4
Lloh6:
	adrp	x20, _GPIO_COUNT@GOTPAGE
Lloh7:
	ldr	x20, [x20, _GPIO_COUNT@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
Lloh8:
	adrp	x22, _GPIO_BASE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _GPIO_BASE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	x8, [x22]
	add	x1, x21, x8
	ldr	x8, [x19, #16]
	ldr	w2, [x8, x21, lsl #2]
	bl	_bus_write_1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
Lloh10:
	adrp	x20, _GPIO_EXTINT_COUNT@GOTPAGE
Lloh11:
	ldr	x20, [x20, _GPIO_EXTINT_COUNT@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x21, #0
Lloh12:
	adrp	x22, _GPIO_EXTINT_BASE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _GPIO_EXTINT_BASE@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	x8, [x22]
	add	x1, x21, x8
	ldr	x8, [x19]
	ldr	w2, [x8, x21, lsl #2]
	bl	_bus_write_1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_6:
	mov	w0, #0
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_LEVELS_0,4,2              ; @GPIO_LEVELS_0
	.comm	_GPIO_LEVELS_1,4,2              ; @GPIO_LEVELS_1
	.comm	_GPIO_COUNT,4,2                 ; @GPIO_COUNT
	.comm	_GPIO_BASE,8,3                  ; @GPIO_BASE
	.comm	_GPIO_EXTINT_COUNT,4,2          ; @GPIO_EXTINT_COUNT
	.comm	_GPIO_EXTINT_BASE,8,3           ; @GPIO_EXTINT_BASE
	.no_dead_strip	_macgpio_resume
.subsections_via_symbols
