	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_gpio_pin_config_32
_aw_gpio_pin_config_32:                 ## @aw_gpio_pin_config_32
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_device_get_softc
	movq	%rax, %r12
	movq	(%rax), %rax
	cmpq	%rbx, (%rax)
	jb	LBB0_1
## %bb.2:
	movq	8(%rax), %rax
	movq	%rbx, %rcx
	shlq	$4, %rcx
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	cmpq	%r15, %rbx
	jae	LBB0_10
## %bb.4:
	movq	_GPIO_PIN_OUTPUT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdx
	movq	(%r13), %rax
	movq	_GPIO_PIN_INPUT@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	testq	%rdx, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_aw_gpio_pin_configure
	testl	%eax, %eax
	je	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%r15, %rbx
	jb	LBB0_5
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GPIO_PIN_INPUT,8,3             ## @GPIO_PIN_INPUT
	.comm	_GPIO_PIN_OUTPUT,8,3            ## @GPIO_PIN_OUTPUT
	.no_dead_strip	_aw_gpio_pin_config_32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_gpio_pin_config_32
_aw_gpio_pin_config_32:                 ; @aw_gpio_pin_config_32
	.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, x3
	mov	x20, x2
	mov	x21, x1
	bl	_device_get_softc
	ldr	x8, [x0]
	ldr	x9, [x8]
	cmp	x9, x21
	b.lo	LBB0_2
; %bb.1:
	ldr	x8, [x8, #8]
	add	x8, x8, x21, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_3:
	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
	ret
LBB0_4:
	cmp	x21, x20
	b.hs	LBB0_10
; %bb.5:
	mov	x22, x0
Lloh3:
	adrp	x23, _GPIO_PIN_INPUT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _GPIO_PIN_INPUT@GOTPAGEOFF]
Lloh5:
	adrp	x24, _GPIO_PIN_OUTPUT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _GPIO_PIN_OUTPUT@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x19, x21, lsl #3]
	ldr	x8, [x23]
	ldr	x9, [x24]
	orr	x8, x9, x8
	tst	x8, x2
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_aw_gpio_pin_configure
	cbz	w0, LBB0_9
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	cbnz	w0, LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	cmp	x21, x20
	b.lo	LBB0_6
	b	LBB0_3
LBB0_10:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GPIO_PIN_INPUT,8,3             ; @GPIO_PIN_INPUT
	.comm	_GPIO_PIN_OUTPUT,8,3            ; @GPIO_PIN_OUTPUT
	.no_dead_strip	_aw_gpio_pin_config_32
.subsections_via_symbols
