	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_set_mult_gpio            ## -- Begin function bnx2x_set_mult_gpio
	.p2align	4, 0x90
_bnx2x_set_mult_gpio:                   ## @bnx2x_set_mult_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	%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	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_HW_LOCK_RESOURCE_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bnx2x_acquire_hw_lock
	movq	_MISC_REG_GPIO@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_REG_RD
	movq	_MISC_REGISTERS_GPIO_FLOAT_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%r15d, %edx
	shll	%cl, %edx
	movq	_MISC_REGISTERS_GPIO_CLR_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%r15d, %esi
	shll	%cl, %esi
	orl	%edx, %esi
	movq	_MISC_REGISTERS_GPIO_SET_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%r15d, %ebx
	shll	%cl, %ebx
	orl	%esi, %ebx
	notl	%ebx
	andl	%eax, %ebx
	leal	-128(%r12), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.3:
	cltq
	leaq	l_reltable.bnx2x_set_mult_gpio(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	leaq	l_switch.table.bnx2x_set_mult_gpio.4(%rip), %rcx
	movq	(%rcx,%rax,8), %r12
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %edx
	callq	_DP
	movb	(%r12), %cl
	shll	%cl, %r15d
	orl	%r15d, %ebx
	movq	_HW_LOCK_RESOURCE_GPIO@GOTPCREL(%rip), %r12
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.3(%rip), %rdi
	movl	%r12d, %esi
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	movq	_HW_LOCK_RESOURCE_GPIO@GOTPCREL(%rip), %r12
	je	LBB0_4
## %bb.2:
	negl	%r15d
	jmp	LBB0_5
LBB0_4:
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_REG_WR
	xorl	%r15d, %r15d
LBB0_5:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_bnx2x_release_hw_lock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_LOCK_RESOURCE_GPIO,4,2      ## @HW_LOCK_RESOURCE_GPIO
	.comm	_MISC_REG_GPIO,4,2              ## @MISC_REG_GPIO
	.comm	_MISC_REGISTERS_GPIO_FLOAT_POS,4,2 ## @MISC_REGISTERS_GPIO_FLOAT_POS
	.comm	_MISC_REGISTERS_GPIO_CLR_POS,4,2 ## @MISC_REGISTERS_GPIO_CLR_POS
	.comm	_MISC_REGISTERS_GPIO_SET_POS,4,2 ## @MISC_REGISTERS_GPIO_SET_POS
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set GPIO 0x%x -> output low\n"

L_.str.1:                               ## @.str.1
	.asciz	"Set GPIO 0x%x -> output high\n"

L_.str.2:                               ## @.str.2
	.asciz	"Set GPIO 0x%x -> input\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid GPIO mode assignment %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.bnx2x_set_mult_gpio
l_reltable.bnx2x_set_mult_gpio:
	.long	L_.str-l_reltable.bnx2x_set_mult_gpio
	.long	L_.str.1-l_reltable.bnx2x_set_mult_gpio
	.long	L_.str.2-l_reltable.bnx2x_set_mult_gpio

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.bnx2x_set_mult_gpio.4
l_switch.table.bnx2x_set_mult_gpio.4:
	.quad	_MISC_REGISTERS_GPIO_CLR_POS
	.quad	_MISC_REGISTERS_GPIO_SET_POS
	.quad	_MISC_REGISTERS_GPIO_FLOAT_POS

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_set_mult_gpio            ; -- Begin function bnx2x_set_mult_gpio
	.p2align	2
_bnx2x_set_mult_gpio:                   ; @bnx2x_set_mult_gpio
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _HW_LOCK_RESOURCE_GPIO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HW_LOCK_RESOURCE_GPIO@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_bnx2x_acquire_hw_lock
Lloh2:
	adrp	x24, _MISC_REG_GPIO@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MISC_REG_GPIO@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_REG_RD
Lloh4:
	adrp	x8, _MISC_REGISTERS_GPIO_FLOAT_POS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MISC_REGISTERS_GPIO_FLOAT_POS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _MISC_REGISTERS_GPIO_CLR_POS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MISC_REGISTERS_GPIO_CLR_POS@GOTPAGEOFF]
	lsl	w8, w20, w8
Lloh9:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _MISC_REGISTERS_GPIO_SET_POS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MISC_REGISTERS_GPIO_SET_POS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w8, w8, w9
	bic	w21, w0, w8
	sub	w8, w22, #128
	cmp	w8, #3
	b.hs	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #3, #32
Lloh13:
	adrp	x9, l_switch.table.bnx2x_set_mult_gpio@PAGE
Lloh14:
	add	x9, x9, l_switch.table.bnx2x_set_mult_gpio@PAGEOFF
	ldr	x1, [x9, x8]
Lloh15:
	adrp	x9, l_switch.table.bnx2x_set_mult_gpio.4@PAGE
Lloh16:
	add	x9, x9, l_switch.table.bnx2x_set_mult_gpio.4@PAGEOFF
	ldr	x22, [x9, x8]
Lloh17:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x2, x20
	bl	_DP
	ldr	w8, [x22]
	lsl	w8, w20, w8
	orr	w21, w8, w21
	b	LBB0_4
LBB0_2:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_BNX2X_ERR
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.3:
	neg	w20, w8
	b	LBB0_5
LBB0_4:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_REG_WR
	mov	w20, #0
LBB0_5:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_bnx2x_release_hw_lock
	mov	x0, 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 AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_LOCK_RESOURCE_GPIO,4,2      ; @HW_LOCK_RESOURCE_GPIO
	.comm	_MISC_REG_GPIO,4,2              ; @MISC_REG_GPIO
	.comm	_MISC_REGISTERS_GPIO_FLOAT_POS,4,2 ; @MISC_REGISTERS_GPIO_FLOAT_POS
	.comm	_MISC_REGISTERS_GPIO_CLR_POS,4,2 ; @MISC_REGISTERS_GPIO_CLR_POS
	.comm	_MISC_REGISTERS_GPIO_SET_POS,4,2 ; @MISC_REGISTERS_GPIO_SET_POS
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set GPIO 0x%x -> output low\n"

l_.str.1:                               ; @.str.1
	.asciz	"Set GPIO 0x%x -> output high\n"

l_.str.2:                               ; @.str.2
	.asciz	"Set GPIO 0x%x -> input\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid GPIO mode assignment %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.bnx2x_set_mult_gpio
l_switch.table.bnx2x_set_mult_gpio:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2

	.p2align	3                               ; @switch.table.bnx2x_set_mult_gpio.4
l_switch.table.bnx2x_set_mult_gpio.4:
	.quad	_MISC_REGISTERS_GPIO_CLR_POS
	.quad	_MISC_REGISTERS_GPIO_SET_POS
	.quad	_MISC_REGISTERS_GPIO_FLOAT_POS

.subsections_via_symbols
