	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx51_gpio_pin_get
_imx51_gpio_pin_get:                    ## @imx51_gpio_pin_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_device_get_softc
	cmpq	%rbx, (%rax)
	jbe	LBB0_1
## %bb.2:
	movq	8(%rax), %rcx
	movq	_GPIO_PIN_OPENDRAIN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rcx,%rbx,4), %edx
	jne	LBB0_3
## %bb.4:
	movq	_IMX_GPIO_DR_REG@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_3:
	movq	_IMX_GPIO_PSR_REG@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_READ4
	xorl	%ecx, %ecx
	btq	%rbx, %rax
	setb	%cl
	movl	%ecx, (%r14)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GPIO_PIN_OPENDRAIN,4,2         ## @GPIO_PIN_OPENDRAIN
	.comm	_IMX_GPIO_PSR_REG,4,2           ## @IMX_GPIO_PSR_REG
	.comm	_IMX_GPIO_DR_REG,4,2            ## @IMX_GPIO_DR_REG
	.no_dead_strip	_imx51_gpio_pin_get
.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_get
_imx51_gpio_pin_get:                    ; @imx51_gpio_pin_get
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_device_get_softc
	ldr	x8, [x0]
	cmp	x8, x20
	b.ls	LBB0_2
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	w8, [x8, x20, lsl #2]
Lloh0:
	adrp	x9, _GPIO_PIN_OPENDRAIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GPIO_PIN_OPENDRAIN@GOTPAGEOFF]
Lloh2:
	adrp	x10, _IMX_GPIO_DR_REG@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IMX_GPIO_DR_REG@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x11, _IMX_GPIO_PSR_REG@GOTPAGE
Lloh6:
	ldr	x11, [x11, _IMX_GPIO_PSR_REG@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	bl	_READ4
	mov	x8, x0
	mov	w0, #0
	lsr	x8, x8, x20
	and	w8, w8, #0x1
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GPIO_PIN_OPENDRAIN,4,2         ; @GPIO_PIN_OPENDRAIN
	.comm	_IMX_GPIO_PSR_REG,4,2           ; @IMX_GPIO_PSR_REG
	.comm	_IMX_GPIO_DR_REG,4,2            ; @IMX_GPIO_DR_REG
	.no_dead_strip	_imx51_gpio_pin_get
.subsections_via_symbols
