	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_spi_set_duty_cycle
_ir_spi_set_duty_cycle:                 ## @ir_spi_set_duty_cycle
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %rbx
	leal	(%rsi,%rsi,4), %eax
	leal	(%rax,%rax,2), %eax
	cltq
	imulq	$1374389535, %rax, %rdi         ## imm = 0x51EB851F
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$37, %rdi
	addl	%eax, %edi
	xorl	%r14d, %r14d
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%eax, 4(%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	notl	%eax
	movl	%eax, 4(%rbx)
	movl	$65535, %r14d                   ## imm = 0xFFFF
LBB0_2:
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ir_spi_set_duty_cycle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_spi_set_duty_cycle
_ir_spi_set_duty_cycle:                 ; @ir_spi_set_duty_cycle
	.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
	ldr	x19, [x0]
	lsl	w8, w1, #4
	sub	w8, w8, w1
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w0, w8, w9
	mov	w1, #0
	bl	_GENMASK
	str	w0, [x19, #4]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mvn	w8, w0
	str	w8, [x19, #4]
	mov	w8, #65535
LBB0_2:
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ir_spi_set_duty_cycle
.subsections_via_symbols
