	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_write_room
_ipw_write_room:                        ## @ipw_write_room
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	cmpl	$0, 4(%rax)
	je	LBB0_4
## %bb.5:
	movq	_IPWIRELESS_TX_QUEUE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovgl	%ecx, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPWIRELESS_TX_QUEUE_SIZE,4,2   ## @IPWIRELESS_TX_QUEUE_SIZE
	.no_dead_strip	_ipw_write_room
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_write_room
_ipw_write_room:                        ; @ipw_write_room
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _IPWIRELESS_TX_QUEUE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPWIRELESS_TX_QUEUE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w8, [x8]
	sub	w8, w9, w8
	cmp	w8, #0
	csel	w0, w8, wzr, gt
	ret
LBB0_3:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPWIRELESS_TX_QUEUE_SIZE,4,2   ; @IPWIRELESS_TX_QUEUE_SIZE
	.no_dead_strip	_ipw_write_room
.subsections_via_symbols
