	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_dbgfs_send_hcmd_write
_iwl_dbgfs_send_hcmd_write:             ## @iwl_dbgfs_send_hcmd_write
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	(%rdi), %edi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	leaq	-4097(%rbx), %rax
	cmpq	$-4073, %rax                    ## imm = 0xF017
	ja	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_7:
	decq	%rbx
	shrq	%rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_hex2bin
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	movslq	%ebx, %rax
	jmp	LBB0_12
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r15, %rdi
	callq	_iwl_dbgfs_send_hcmd_write.cold.1
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function iwl_dbgfs_send_hcmd_write.cold.1
_iwl_dbgfs_send_hcmd_write.cold.1:      ## @iwl_dbgfs_send_hcmd_write.cold.1
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_be32_to_cpu
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	movl	4(%rbx), %edi
	callq	_be16_to_cpu
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,8,3                        ## @EIO
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_CMD_WANT_SKB,4,2               ## @CMD_WANT_SKB
	.no_dead_strip	_iwl_dbgfs_send_hcmd_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_dbgfs_send_hcmd_write
_iwl_dbgfs_send_hcmd_write:             ; @iwl_dbgfs_send_hcmd_write
	.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
	mov	x20, x2
	mov	x19, x1
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x0]
	blr	x8
	cbz	w0, LBB0_9
LBB0_3:
	mov	x8, #-4097
	add	x8, x20, x8
	cmn	x8, #4073
	b.hi	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	sub	x8, x20, #1
	lsr	x21, x8, #1
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kmalloc
	cbz	x0, LBB0_8
; %bb.6:
	mov	x20, x0
	mov	x1, x19
	mov	x2, x21
	bl	_hex2bin
	cbz	w0, LBB0_12
; %bb.7:
	mov	x19, x0
	mov	x0, x20
	bl	_kfree
	sxtw	x0, w19
	b	LBB0_11
LBB0_8:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_11:
	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
LBB0_12:
	mov	x0, x20
	bl	_iwl_dbgfs_send_hcmd_write.cold.1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function iwl_dbgfs_send_hcmd_write.cold.1
_iwl_dbgfs_send_hcmd_write.cold.1:      ; @iwl_dbgfs_send_hcmd_write.cold.1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_be32_to_cpu
	ldr	w0, [x19, #8]
	bl	_be32_to_cpu
	ldr	w0, [x19, #4]
	bl	_be16_to_cpu
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,8,3                        ; @EIO
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_CMD_WANT_SKB,4,2               ; @CMD_WANT_SKB
	.no_dead_strip	_iwl_dbgfs_send_hcmd_write
.subsections_via_symbols
