	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioctl_send_phy_packet
_ioctl_send_phy_packet:                 ## @ioctl_send_phy_packet
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rax), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$52, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_client_get
	movq	%r12, 40(%rbx)
	movq	_SCODE_100@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	12(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	_TCODE_LINK_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$4, %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	(%r15), %rdi
	movl	(%rdi), %eax
	movl	%eax, 4(%rcx)
	movl	4(%rdi), %eax
	movl	%eax, 8(%rcx)
	movl	$12, 8(%rbx)
	movq	_outbound_phy_packet_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 32(%rbx)
	movq	_FW_CDEV_EVENT_PHY_PACKET_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	callq	_is_ping_packet
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$4, 24(%rbx)
LBB0_7:
	movq	(%r14), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SCODE_100,4,2                  ## @SCODE_100
	.comm	_TCODE_LINK_INTERNAL,4,2        ## @TCODE_LINK_INTERNAL
	.comm	_outbound_phy_packet_callback,4,2 ## @outbound_phy_packet_callback
	.comm	_FW_CDEV_EVENT_PHY_PACKET_SENT,4,2 ## @FW_CDEV_EVENT_PHY_PACKET_SENT
	.no_dead_strip	_ioctl_send_phy_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioctl_send_phy_packet
_ioctl_send_phy_packet:                 ; @ioctl_send_phy_packet
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0]
	ldr	w9, [x8]
	cbz	w9, LBB0_5
; %bb.1:
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x8, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #52
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	mov	x0, x22
	bl	_client_get
	str	x22, [x20, #40]
Lloh3:
	adrp	x8, _SCODE_100@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCODE_100@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x21, #12]
	stp	w9, w8, [x20, #16]
Lloh6:
	adrp	x8, _TCODE_LINK_INTERNAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCODE_LINK_INTERNAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w8, w8, #4
	ldr	x9, [x20]
	str	w8, [x9]
	ldr	x0, [x21]
	ldr	w8, [x0]
	str	w8, [x9, #4]
	ldr	w8, [x0, #4]
	str	w8, [x9, #8]
	mov	w8, #12
Lloh9:
	adrp	x9, _outbound_phy_packet_callback@GOTPAGE
Lloh10:
	ldr	x9, [x9, _outbound_phy_packet_callback@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #8]
	ldr	w8, [x21, #8]
Lloh12:
	adrp	x9, _FW_CDEV_EVENT_PHY_PACKET_SENT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FW_CDEV_EVENT_PHY_PACKET_SENT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #28]
	bl	_is_ping_packet
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #4
	str	w8, [x20, #24]
LBB0_4:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh15:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SCODE_100,4,2                  ; @SCODE_100
	.comm	_TCODE_LINK_INTERNAL,4,2        ; @TCODE_LINK_INTERNAL
	.comm	_outbound_phy_packet_callback,4,2 ; @outbound_phy_packet_callback
	.comm	_FW_CDEV_EVENT_PHY_PACKET_SENT,4,2 ; @FW_CDEV_EVENT_PHY_PACKET_SENT
	.no_dead_strip	_ioctl_send_phy_packet
.subsections_via_symbols
