	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_get_epio
_bnx2x_get_epio:                        ## @bnx2x_get_epio
	.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
	movl	%esi, %ebx
	movl	$0, (%rdx)
	cmpl	$32, %esi
	jl	LBB0_1
## %bb.2:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
LBB0_1:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	$1, %r12d
	movl	%ebx, %ecx
	shll	%cl, %r12d
	movq	_MCP_REG_MCPR_GP_OENABLE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_REG_RD
	movl	(%r13), %esi
	btrl	%ebx, %eax
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_REG_WR
	movq	_MCP_REG_MCPR_GP_INPUTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_REG_RD
	andl	%r12d, %eax
	movl	%ebx, %ecx
	sarl	%cl, %eax
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid EPIO pin %d to get\n"

	.comm	_MCP_REG_MCPR_GP_OENABLE,4,2    ## @MCP_REG_MCPR_GP_OENABLE
	.comm	_MCP_REG_MCPR_GP_INPUTS,4,2     ## @MCP_REG_MCPR_GP_INPUTS
	.no_dead_strip	_bnx2x_get_epio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_get_epio
_bnx2x_get_epio:                        ; @bnx2x_get_epio
	.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, x1
	str	wzr, [x2]
	cmp	w1, #32
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	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
	b	_DP
LBB0_2:
	mov	x20, x2
	mov	x21, x0
	mov	w8, #1
	lsl	w22, w8, w19
Lloh5:
	adrp	x23, _MCP_REG_MCPR_GP_OENABLE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MCP_REG_MCPR_GP_OENABLE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_REG_RD
	ldr	w1, [x23]
	bic	w2, w0, w22
	mov	x0, x21
	bl	_REG_WR
Lloh7:
	adrp	x8, _MCP_REG_MCPR_GP_INPUTS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MCP_REG_MCPR_GP_INPUTS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_REG_RD
	and	w8, w0, w22
	asr	w8, w8, w19
	str	w8, [x20]
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid EPIO pin %d to get\n"

	.comm	_MCP_REG_MCPR_GP_OENABLE,4,2    ; @MCP_REG_MCPR_GP_OENABLE
	.comm	_MCP_REG_MCPR_GP_INPUTS,4,2     ; @MCP_REG_MCPR_GP_INPUTS
	.no_dead_strip	_bnx2x_get_epio
.subsections_via_symbols
