	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fw_consumer_modevent
_fw_consumer_modevent:                  ## @fw_consumer_modevent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$128, %esi
	je	LBB0_9
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_firmware_get
	movq	_fp@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rax), %rsi
	movslq	8(%rax), %rcx
	cmpb	$0, -1(%rcx,%rsi)
	je	LBB0_8
## %bb.5:
	movq	_FIRMWARE_UNLOAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_firmware_put
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_12
LBB0_9:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_fp@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printf
	movq	(%r14), %rdi
	movq	_FIRMWARE_UNLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_firmware_put
	jmp	LBB0_12
LBB0_3:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_12
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printf
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"beastie"

	.comm	_fp,8,3                         ## @fp
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_FIRMWARE_UNLOAD,4,2            ## @FIRMWARE_UNLOAD
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_str:                                  ## @str
	.asciz	"Bye!"

	.no_dead_strip	_fw_consumer_modevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fw_consumer_modevent
_fw_consumer_modevent:                  ; @fw_consumer_modevent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cmp	w1, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_firmware_get
Lloh2:
	adrp	x8, _fp@GOTPAGE
Lloh3:
	ldr	x8, [x8, _fp@GOTPAGEOFF]
Lloh4:
	str	x0, [x8]
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x8, [x0]
	ldrsw	x9, [x0, #8]
	add	x9, x9, x8
	ldurb	w9, [x9, #-1]
	cbz	w9, LBB0_9
; %bb.4:
Lloh5:
	adrp	x8, _FIRMWARE_UNLOAD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FIRMWARE_UNLOAD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_firmware_put
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_6:
Lloh11:
	adrp	x0, l_str@PAGE
Lloh12:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh13:
	adrp	x19, _fp@GOTPAGE
Lloh14:
	ldr	x19, [x19, _fp@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x0, [x19]
Lloh17:
	adrp	x8, _FIRMWARE_UNLOAD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FIRMWARE_UNLOAD@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_firmware_put
	b	LBB0_10
LBB0_8:
Lloh20:
	adrp	x8, _ENOENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_9:
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"beastie"

	.comm	_fp,8,3                         ; @fp
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_FIRMWARE_UNLOAD,4,2            ; @FIRMWARE_UNLOAD
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_str:                                  ; @str
	.asciz	"Bye!"

	.no_dead_strip	_fw_consumer_modevent
.subsections_via_symbols
