	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw2100_set_mandatory_bssid
_ipw2100_set_mandatory_bssid:           ## @ipw2100_set_mandatory_bssid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movl	$0, -32(%rbp)
	xorl	%eax, %eax
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testq	%rsi, %rsi
	cmovnel	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	$0, -24(%rbp)
	movq	_MANDATORY_BSSID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_memcpy
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.6:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ipw2100_hw_send_command
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	%r14, %rdi
	callq	_ipw2100_disable_adapter
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ipw2100_hw_send_command
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_ipw2100_enable_adapter
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MANDATORY_BSSID,4,2            ## @MANDATORY_BSSID
	.no_dead_strip	_ipw2100_set_mandatory_bssid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw2100_set_mandatory_bssid
_ipw2100_set_mandatory_bssid:           ; @ipw2100_set_mandatory_bssid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	cmp	x1, #0
	csel	w8, wzr, w2, eq
	stp	wzr, w8, [sp]
Lloh3:
	adrp	x8, _MANDATORY_BSSID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MANDATORY_BSSID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
	cbz	x1, LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_memcpy
LBB0_2:
	cbz	w20, LBB0_4
; %bb.3:
	mov	x1, sp
	mov	x0, x19
	bl	_ipw2100_hw_send_command
	mov	x20, x0
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_ipw2100_disable_adapter
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x1, sp
	mov	x0, x19
	bl	_ipw2100_hw_send_command
	mov	x20, x0
	mov	x0, x19
	bl	_ipw2100_enable_adapter
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MANDATORY_BSSID,4,2            ; @MANDATORY_BSSID
	.no_dead_strip	_ipw2100_set_mandatory_bssid
.subsections_via_symbols
