	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mceusb_set_rx_carrier_report
_mceusb_set_rx_carrier_report:          ## @mceusb_set_rx_carrier_report
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	(%rdi), %r14
	movq	_MCE_CMD_PORT_IR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -19(%rbp)
	movq	_MCE_CMD_SETIRRXPORTEN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -18(%rbp)
	movl	16(%r14), %edi
	testl	%esi, %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movl	$1, (%r14)
	cmpq	$0, 8(%r14)
	jne	LBB0_7
## %bb.2:
	movb	$2, %al
	jmp	LBB0_6
LBB0_3:
	movl	$0, (%r14)
	cmpq	$0, 8(%r14)
	je	LBB0_7
## %bb.4:
	cmpl	$0, 4(%r14)
	jne	LBB0_7
## %bb.5:
	movb	$1, %al
LBB0_6:
	movb	%al, -17(%rbp)
	leaq	-19(%rbp), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_mce_command_out
LBB0_7:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCE_CMD_PORT_IR,4,2            ## @MCE_CMD_PORT_IR
	.comm	_MCE_CMD_SETIRRXPORTEN,4,2      ## @MCE_CMD_SETIRRXPORTEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s short-range receiver carrier reporting"

L_.str.1:                               ## @.str.1
	.asciz	"enable"

L_.str.2:                               ## @.str.2
	.asciz	"disable"

	.no_dead_strip	_mceusb_set_rx_carrier_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mceusb_set_rx_carrier_report
_mceusb_set_rx_carrier_report:          ; @mceusb_set_rx_carrier_report
	.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
	mov	x20, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _MCE_CMD_PORT_IR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCE_CMD_PORT_IR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	strb	w8, [sp, #13]
Lloh3:
	adrp	x8, _MCE_CMD_SETIRRXPORTEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCE_CMD_SETIRRXPORTEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	strb	w8, [sp, #14]
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w1, #0
	csel	x2, x9, x8, eq
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	cbz	w20, LBB0_3
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_7
; %bb.2:
	mov	w8, #2
	b	LBB0_6
LBB0_3:
	str	wzr, [x19]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_7
; %bb.5:
	mov	w8, #1
LBB0_6:
	strb	w8, [sp, #15]
	add	x1, sp, #13
	mov	x0, x19
	mov	w2, #3
	bl	_mce_command_out
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MCE_CMD_PORT_IR,4,2            ; @MCE_CMD_PORT_IR
	.comm	_MCE_CMD_SETIRRXPORTEN,4,2      ; @MCE_CMD_SETIRRXPORTEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s short-range receiver carrier reporting"

l_.str.1:                               ; @.str.1
	.asciz	"enable"

l_.str.2:                               ; @.str.2
	.asciz	"disable"

	.no_dead_strip	_mceusb_set_rx_carrier_report
.subsections_via_symbols
