	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ene_tx_set_carrier
_ene_tx_set_carrier:                    ## @ene_tx_set_carrier
	.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	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_ENE_CIRCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ENE_CIRCFG_TX_CARR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	cmpl	$0, (%rbx)
	setg	%cl
	movq	%rbx, %rdi
	callq	_ene_set_clear_reg_mask
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %eax
	addl	$-100, %eax
	xorl	%edi, %edi
	cmpl	$-99, %eax
	setb	%dil
	callq	_BUG_ON
	movl	(%rbx), %esi
	movl	$100, %eax
	xorl	%edx, %edx
	idivl	4(%rbx)
	movl	%eax, %ecx
	movl	%esi, %eax
	cltd
	idivl	%ecx
	testl	%eax, %eax
	movl	$1, %r15d
	cmovnel	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_dbg
	movq	_ENE_CIRMOD_PRD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ENE_CIRMOD_PRD_POL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_ene_write_reg
	movq	_ENE_CIRMOD_HPRD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ene_write_reg
LBB0_2:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENE_CIRCFG,4,2                 ## @ENE_CIRCFG
	.comm	_ENE_CIRCFG_TX_CARR,4,2         ## @ENE_CIRCFG_TX_CARR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX: pulse distance = %d * 500 ns"

L_.str.1:                               ## @.str.1
	.asciz	"TX: pulse width = %d * 500 ns"

	.comm	_ENE_CIRMOD_PRD,4,2             ## @ENE_CIRMOD_PRD
	.comm	_ENE_CIRMOD_PRD_POL,4,2         ## @ENE_CIRMOD_PRD_POL
	.comm	_ENE_CIRMOD_HPRD,4,2            ## @ENE_CIRMOD_HPRD
	.no_dead_strip	_ene_tx_set_carrier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ene_tx_set_carrier
_ene_tx_set_carrier:                    ; @ene_tx_set_carrier
	.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, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _ENE_CIRCFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENE_CIRCFG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ENE_CIRCFG_TX_CARR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENE_CIRCFG_TX_CARR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w3, gt
	mov	x0, x20
	bl	_ene_set_clear_reg_mask
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x20, #4]
	sub	w8, w8, #100
	cmn	w8, #99
	cset	w0, lo
	bl	_BUG_ON
	ldp	w1, w8, [x20]
	mov	w9, #100
	sdiv	w8, w9, w8
	sdiv	w8, w1, w8
	cmp	w8, #0
	csinc	w21, w8, wzr, ne
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_dbg
Lloh10:
	adrp	x8, _ENE_CIRMOD_PRD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENE_CIRMOD_PRD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w8, [x20]
Lloh13:
	adrp	x9, _ENE_CIRMOD_PRD_POL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ENE_CIRMOD_PRD_POL@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_ene_write_reg
Lloh16:
	adrp	x8, _ENE_CIRMOD_HPRD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENE_CIRMOD_HPRD@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_ene_write_reg
LBB0_2:
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENE_CIRCFG,4,2                 ; @ENE_CIRCFG
	.comm	_ENE_CIRCFG_TX_CARR,4,2         ; @ENE_CIRCFG_TX_CARR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX: pulse distance = %d * 500 ns"

l_.str.1:                               ; @.str.1
	.asciz	"TX: pulse width = %d * 500 ns"

	.comm	_ENE_CIRMOD_PRD,4,2             ; @ENE_CIRMOD_PRD
	.comm	_ENE_CIRMOD_PRD_POL,4,2         ; @ENE_CIRMOD_PRD_POL
	.comm	_ENE_CIRMOD_HPRD,4,2            ; @ENE_CIRMOD_HPRD
	.no_dead_strip	_ene_tx_set_carrier
.subsections_via_symbols
