	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_get_gpio                 ## -- Begin function bnx2x_get_gpio
	.p2align	4, 0x90
_bnx2x_get_gpio:                        ## @bnx2x_get_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_NIG_REG_PORT_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_REG_RD
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_NIG_REG_STRAP_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_RD
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	_MISC_REGISTERS_GPIO_3@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jge	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	xorl	%r12d, %r12d
	cmpl	%r15d, %ecx
	je	LBB0_7
## %bb.6:
	movq	_MISC_REGISTERS_GPIO_PORT_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_7:
	addl	%r14d, %r12d
	movq	_MISC_REG_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_RD
	xorl	%ebx, %ebx
	btl	%r12d, %eax
	setb	%bl
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_DP
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIG_REG_PORT_SWAP,4,2          ## @NIG_REG_PORT_SWAP
	.comm	_NIG_REG_STRAP_OVERRIDE,4,2     ## @NIG_REG_STRAP_OVERRIDE
	.comm	_MISC_REGISTERS_GPIO_PORT_SHIFT,4,2 ## @MISC_REGISTERS_GPIO_PORT_SHIFT
	.comm	_MISC_REGISTERS_GPIO_3,4,2      ## @MISC_REGISTERS_GPIO_3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid GPIO %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MISC_REG_GPIO,4,2              ## @MISC_REG_GPIO
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
L_.str.1:                               ## @.str.1
	.asciz	"pin %d  value 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_get_gpio                 ; -- Begin function bnx2x_get_gpio
	.p2align	2
_bnx2x_get_gpio:                        ; @bnx2x_get_gpio
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NIG_REG_PORT_SWAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIG_REG_PORT_SWAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_REG_RD
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _NIG_REG_STRAP_OVERRIDE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIG_REG_STRAP_OVERRIDE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_REG_RD
	cmp	w0, #0
	cset	w8, ne
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
Lloh6:
	adrp	x9, _MISC_REGISTERS_GPIO_3@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MISC_REGISTERS_GPIO_3@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w19
	b.ge	LBB0_5
; %bb.4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BNX2X_ERR
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x9, _MISC_REGISTERS_GPIO_PORT_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MISC_REGISTERS_GPIO_PORT_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w21
	csel	w8, wzr, w9, eq
	add	w21, w8, w19
Lloh17:
	adrp	x8, _MISC_REG_GPIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MISC_REG_GPIO@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_REG_RD
	lsr	w8, w0, w21
	and	w20, w8, #0x1
Lloh20:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_DP
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NIG_REG_PORT_SWAP,4,2          ; @NIG_REG_PORT_SWAP
	.comm	_NIG_REG_STRAP_OVERRIDE,4,2     ; @NIG_REG_STRAP_OVERRIDE
	.comm	_MISC_REGISTERS_GPIO_PORT_SHIFT,4,2 ; @MISC_REGISTERS_GPIO_PORT_SHIFT
	.comm	_MISC_REGISTERS_GPIO_3,4,2      ; @MISC_REGISTERS_GPIO_3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid GPIO %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MISC_REG_GPIO,4,2              ; @MISC_REG_GPIO
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
l_.str.1:                               ; @.str.1
	.asciz	"pin %d  value 0x%x\n"

.subsections_via_symbols
