	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbs_setup_firmware
_lbs_setup_firmware:                    ## @lbs_setup_firmware
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movq	$0, -16(%rbp)
	movl	24(%rdi), %edi
	callq	_eth_broadcast_addr
	movq	%rbx, %rdi
	callq	_lbs_update_hw_spec
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	leaq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-16(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_lbs_get_tx_power
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	-32(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	-24(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	-16(%rbp), %rax
	movq	%rax, (%rbx)
LBB0_3:
	movq	_SNMP_MIB_OID_11D_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_lbs_set_snmp_mib
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_lbs_set_mac_control_sync
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_MIB_OID_11D_ENABLE,4,2    ## @SNMP_MIB_OID_11D_ENABLE
	.no_dead_strip	_lbs_setup_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbs_setup_firmware
_lbs_setup_firmware:                    ; @lbs_setup_firmware
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
	ldr	w0, [x0, #24]
	bl	_eth_broadcast_addr
	mov	x0, x19
	bl	_lbs_update_hw_spec
	cbnz	w0, LBB0_5
; %bb.1:
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x19
	bl	_lbs_get_tx_power
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x10, [sp, #24]
	ldp	x9, x8, [sp, #8]
	stp	x8, x10, [x19, #8]
	str	x9, [x19]
LBB0_3:
Lloh0:
	adrp	x8, _SNMP_MIB_OID_11D_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNMP_MIB_OID_11D_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_lbs_set_snmp_mib
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_lbs_set_mac_control_sync
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_MIB_OID_11D_ENABLE,4,2    ; @SNMP_MIB_OID_11D_ENABLE
	.no_dead_strip	_lbs_setup_firmware
.subsections_via_symbols
