	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwsim_get_radio
_hwsim_get_radio:                       ## @hwsim_get_radio
	.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
	movl	%r9d, %eax
	movq	%r8, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_MAC802154_HWSIM_CMD_GET_RADIO@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movq	_hwsim_genl_family@GOTPCREL(%rip), %rbx
	movl	%edx, %esi
	movl	%ecx, %edx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_genlmsg_put
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_genl_dump_check_consistent
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_append_radio_msg
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_genlmsg_end
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_genlmsg_cancel
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_hwsim_genl_family,4,2          ## @hwsim_genl_family
	.comm	_MAC802154_HWSIM_CMD_GET_RADIO,4,2 ## @MAC802154_HWSIM_CMD_GET_RADIO
	.no_dead_strip	_hwsim_get_radio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwsim_get_radio
_hwsim_get_radio:                       ; @hwsim_get_radio
	.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	x8, x5
	mov	x22, x4
	mov	x9, x3
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x10, _MAC802154_HWSIM_CMD_GET_RADIO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAC802154_HWSIM_CMD_GET_RADIO@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x10]
Lloh3:
	adrp	x3, _hwsim_genl_family@GOTPAGE
Lloh4:
	ldr	x3, [x3, _hwsim_genl_family@GOTPAGEOFF]
	mov	x1, x2
	mov	x2, x9
	mov	x4, x8
	bl	_genlmsg_put
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	cbz	x22, LBB0_3
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	bl	_genl_dump_check_consistent
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_append_radio_msg
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_genlmsg_end
	mov	w20, #0
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_6:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_genlmsg_cancel
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_hwsim_genl_family,4,2          ; @hwsim_genl_family
	.comm	_MAC802154_HWSIM_CMD_GET_RADIO,4,2 ; @MAC802154_HWSIM_CMD_GET_RADIO
	.no_dead_strip	_hwsim_get_radio
.subsections_via_symbols
