	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx51_gpio_pin_access_32
_imx51_gpio_pin_access_32:              ## @imx51_gpio_pin_access_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
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_6
LBB0_2:
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_device_get_softc
	movq	%rax, %r15
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movq	_IMX_GPIO_DR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_READ4
	movq	%rax, (%r12)
LBB0_4:
	xorl	%r12d, %r12d
	movq	%r14, %rax
	orq	%rbx, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_mtx_lock_spin
	movq	_IMX_GPIO_DR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_READ4
	notq	%rbx
	andq	%rax, %rbx
	xorq	%r14, %rbx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	callq	_WRITE4
	movq	%r15, %rdi
	callq	_mtx_unlock_spin
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IMX_GPIO_DR_REG,4,2            ## @IMX_GPIO_DR_REG
	.no_dead_strip	_imx51_gpio_pin_access_32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx51_gpio_pin_access_32
_imx51_gpio_pin_access_32:              ; @imx51_gpio_pin_access_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
	cbz	x1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_2:
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	bl	_device_get_softc
	mov	x21, x0
Lloh3:
	adrp	x23, _IMX_GPIO_DR_REG@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IMX_GPIO_DR_REG@GOTPAGEOFF]
	cbz	x22, LBB0_4
; %bb.3:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_READ4
	str	x0, [x22]
LBB0_4:
	orr	x8, x19, x20
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_mtx_lock_spin
	ldr	w22, [x23]
	mov	x0, x21
	mov	x1, x22
	bl	_READ4
	bic	x8, x0, x20
	eor	x2, x8, x19
	mov	x0, x21
	mov	x1, x22
	bl	_WRITE4
	mov	x0, x21
	bl	_mtx_unlock_spin
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IMX_GPIO_DR_REG,4,2            ; @IMX_GPIO_DR_REG
	.no_dead_strip	_imx51_gpio_pin_access_32
.subsections_via_symbols
