	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_get_cfg_pin
_bnx2x_get_cfg_pin:                     ## @bnx2x_get_cfg_pin
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_PIN_CFG_NA@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_6
LBB0_2:
	movq	%rdx, %rbx
	movq	%rsi, %rdx
	movq	_PIN_CFG_EPIO0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	jle	LBB0_3
## %bb.4:
	movq	_PIN_CFG_GPIO0_P0@GOTPCREL(%rip), %rax
	subq	(%rax), %rdx
	movl	%edx, %esi
	andl	$3, %esi
	sarq	$2, %rdx
	callq	_bnx2x_get_gpio
	movq	%rax, (%rbx)
	jmp	LBB0_5
LBB0_3:
	subq	%rax, %rdx
	movq	%rdx, %rsi
	movq	%rbx, %rdx
	callq	_bnx2x_get_epio
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_CFG_NA,8,3                 ## @PIN_CFG_NA
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_PIN_CFG_EPIO0,8,3              ## @PIN_CFG_EPIO0
	.comm	_PIN_CFG_GPIO0_P0,8,3           ## @PIN_CFG_GPIO0_P0
	.no_dead_strip	_bnx2x_get_cfg_pin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_get_cfg_pin
_bnx2x_get_cfg_pin:                     ; @bnx2x_get_cfg_pin
	.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
Lloh0:
	adrp	x8, _PIN_CFG_NA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIN_CFG_NA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_5
LBB0_2:
	mov	x19, x2
Lloh6:
	adrp	x8, _PIN_CFG_EPIO0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PIN_CFG_EPIO0@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x1
	b.le	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _PIN_CFG_GPIO0_P0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PIN_CFG_GPIO0_P0@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	sub	x8, x1, x8
	and	x1, x8, #0x3
	asr	x2, x8, #2
	bl	_bnx2x_get_gpio
	mov	x8, x0
	mov	x0, #0
	str	x8, [x19]
	b	LBB0_5
LBB0_4:
	sub	x1, x1, x8
	mov	x2, x19
	bl	_bnx2x_get_epio
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_CFG_NA,8,3                 ; @PIN_CFG_NA
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_PIN_CFG_EPIO0,8,3              ; @PIN_CFG_EPIO0
	.comm	_PIN_CFG_GPIO0_P0,8,3           ; @PIN_CFG_GPIO0_P0
	.no_dead_strip	_bnx2x_get_cfg_pin
.subsections_via_symbols
