	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_epio
_bnx2x_set_epio:                        ## @bnx2x_set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$32, %esi
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
LBB0_2:
	movl	%edx, %r15d
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_DP
	movq	_MCP_REG_MCPR_GP_OUTPUTS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_REG_RD
	movl	%eax, %edx
	btsl	%ebx, %edx
	btrl	%ebx, %eax
	testl	%r15d, %r15d
	cmovel	%eax, %edx
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_REG_WR
	movq	_MCP_REG_MCPR_GP_OENABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_REG_RD
	movl	(%r15), %esi
	btsl	%ebx, %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WR                         ## TAILCALL
	.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 set\n"

L_.str.1:                               ## @.str.1
	.asciz	"Setting EPIO pin %d to %d\n"

	.comm	_MCP_REG_MCPR_GP_OUTPUTS,4,2    ## @MCP_REG_MCPR_GP_OUTPUTS
	.comm	_MCP_REG_MCPR_GP_OENABLE,4,2    ## @MCP_REG_MCPR_GP_OENABLE
	.no_dead_strip	_bnx2x_set_epio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_set_epio
_bnx2x_set_epio:                        ; @bnx2x_set_epio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cmp	w1, #32
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	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
	add	sp, sp, #64
	b	_DP
LBB0_2:
	mov	x20, x2
	str	x20, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_DP
	mov	w8, #1
	lsl	w21, w8, w21
Lloh7:
	adrp	x22, _MCP_REG_MCPR_GP_OUTPUTS@GOTPAGE
Lloh8:
	ldr	x22, [x22, _MCP_REG_MCPR_GP_OUTPUTS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_REG_RD
	orr	w8, w0, w21
	bic	w9, w0, w21
	cmp	w20, #0
	csel	w2, w9, w8, eq
	ldr	w1, [x22]
	mov	x0, x19
	bl	_REG_WR
Lloh9:
	adrp	x20, _MCP_REG_MCPR_GP_OENABLE@GOTPAGE
Lloh10:
	ldr	x20, [x20, _MCP_REG_MCPR_GP_OENABLE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_RD
	ldr	w1, [x20]
	orr	w2, w0, w21
	mov	x0, 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
	add	sp, sp, #64
	b	_REG_WR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	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 set\n"

l_.str.1:                               ; @.str.1
	.asciz	"Setting EPIO pin %d to %d\n"

	.comm	_MCP_REG_MCPR_GP_OUTPUTS,4,2    ; @MCP_REG_MCPR_GP_OUTPUTS
	.comm	_MCP_REG_MCPR_GP_OENABLE,4,2    ; @MCP_REG_MCPR_GP_OENABLE
	.no_dead_strip	_bnx2x_set_epio
.subsections_via_symbols
