	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw2100_set_ordinal
_ipw2100_set_ordinal:                   ## @ipw2100_set_ordinal
	.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
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	8(%rdi), %r13
	movq	%r13, %rdi
	callq	_IS_ORDINAL_TABLE_ONE
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_IPW_ORD_TAB_1_ENTRY_SIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	%rax, (%r14)
	jne	LBB0_2
## %bb.3:
	movl	(%r12), %edi
	shlq	$2, %rbx
	addq	8(%r12), %rbx
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_read_nic_dword
	movl	(%r12), %edi
	movq	-48(%rbp), %rsi
	movq	(%r15), %rdx
	callq	_write_nic_dword
	movq	(%r13), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_IPW_DEBUG_INFO
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_IS_ORDINAL_TABLE_TWO
	jmp	LBB0_5
LBB0_2:
	movq	%rax, (%r14)
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_INFO
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPW_ORD_TAB_1_ENTRY_SIZE,8,3   ## @IPW_ORD_TAB_1_ENTRY_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong size\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"wrong table\n"

	.no_dead_strip	_ipw2100_set_ordinal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw2100_set_ordinal
_ipw2100_set_ordinal:                   ; @ipw2100_set_ordinal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	x23, x0, #8
	mov	x0, x23
	bl	_IS_ORDINAL_TABLE_ONE
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x9, [x19]
Lloh0:
	adrp	x23, _IPW_ORD_TAB_1_ENTRY_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IPW_ORD_TAB_1_ENTRY_SIZE@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x22]
	ldr	x8, [x22, #8]
	add	x1, x8, x21, lsl #2
	add	x2, sp, #8
	bl	_read_nic_dword
	ldr	w0, [x22]
	ldr	x1, [sp, #8]
	ldr	x2, [x20]
	bl	_write_nic_dword
	mov	w0, #0
	ldr	x8, [x23]
	str	x8, [x19]
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_INFO
	mov	x0, x23
	mov	x1, x21
	bl	_IS_ORDINAL_TABLE_TWO
	b	LBB0_5
LBB0_4:
	str	x8, [x19]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_INFO
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IPW_ORD_TAB_1_ENTRY_SIZE,8,3   ; @IPW_ORD_TAB_1_ENTRY_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong size\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"wrong table\n"

	.no_dead_strip	_ipw2100_set_ordinal
.subsections_via_symbols
