	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_spi_probe
_ir_spi_probe:                          ## @ir_spi_probe
	.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
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movl	%eax, 24(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movl	24(%rbx), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_RC_DRIVER_IR_RAW_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_devm_rc_allocate_device
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	_ir_spi_tx@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rax)
	movq	_ir_spi_set_tx_carrier@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	_ir_spi_set_duty_cycle@GOTPCREL(%rip), %rcx
	movq	%rcx, 24(%rax)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, (%rax)
	movq	_IR_SPI_DRIVER_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	%rbx, 8(%rax)
	movq	%r14, 16(%rbx)
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_of_property_read_bool
	movl	%eax, 12(%rbx)
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_of_property_read_u8
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	$50, -20(%rbp)
	movl	$50, %esi
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	movl	-20(%rbp), %esi
LBB0_7:
	movq	(%rbx), %rdi
	callq	_ir_spi_set_duty_cycle
	movq	_IR_SPI_DEFAULT_FREQUENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_devm_rc_register_device
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irda_regulator"

	.comm	_RC_DRIVER_IR_RAW_TX,4,2        ## @RC_DRIVER_IR_RAW_TX
	.comm	_ir_spi_tx,4,2                  ## @ir_spi_tx
	.comm	_ir_spi_set_tx_carrier,4,2      ## @ir_spi_set_tx_carrier
L_.str.1:                               ## @.str.1
	.asciz	"IR SPI"

	.comm	_IR_SPI_DRIVER_NAME,4,2         ## @IR_SPI_DRIVER_NAME
L_.str.2:                               ## @.str.2
	.asciz	"led-active-low"

L_.str.3:                               ## @.str.3
	.asciz	"duty-cycle"

	.comm	_IR_SPI_DEFAULT_FREQUENCY,4,2   ## @IR_SPI_DEFAULT_FREQUENCY
	.no_dead_strip	_ir_spi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_spi_probe
_ir_spi_probe:                          ; @ir_spi_probe
	.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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20, #24]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_PTR_ERR
LBB0_3:
Lloh5:
	adrp	x8, _RC_DRIVER_IR_RAW_TX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RC_DRIVER_IR_RAW_TX@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_rc_allocate_device
	str	x0, [x20]
	cbz	x0, LBB0_6
; %bb.4:
Lloh8:
	adrp	x8, _ir_spi_tx@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ir_spi_tx@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _ir_spi_set_tx_carrier@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ir_spi_set_tx_carrier@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _ir_spi_set_duty_cycle@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ir_spi_set_duty_cycle@GOTPAGEOFF]
	stp	w9, w8, [x0, #32]
	str	x10, [x0, #24]
Lloh16:
	adrp	x8, _IR_SPI_DRIVER_NAME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IR_SPI_DRIVER_NAME@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x0, #16]
Lloh19:
	adrp	x8, l_.str.1@PAGE
Lloh20:
	add	x8, x8, l_.str.1@PAGEOFF
	stp	x8, x20, [x0]
	str	x19, [x20, #16]
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_of_property_read_bool
	str	w0, [x20, #12]
	ldr	w0, [x19]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u8
	cbz	w0, LBB0_7
; %bb.5:
	mov	w1, #50
	str	w1, [sp, #12]
	b	LBB0_8
LBB0_6:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	ldr	w1, [sp, #12]
LBB0_8:
	ldr	x0, [x20]
	bl	_ir_spi_set_duty_cycle
Lloh28:
	adrp	x8, _IR_SPI_DEFAULT_FREQUENCY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IR_SPI_DEFAULT_FREQUENCY@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_devm_rc_register_device
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irda_regulator"

	.comm	_RC_DRIVER_IR_RAW_TX,4,2        ; @RC_DRIVER_IR_RAW_TX
	.comm	_ir_spi_tx,4,2                  ; @ir_spi_tx
	.comm	_ir_spi_set_tx_carrier,4,2      ; @ir_spi_set_tx_carrier
l_.str.1:                               ; @.str.1
	.asciz	"IR SPI"

	.comm	_IR_SPI_DRIVER_NAME,4,2         ; @IR_SPI_DRIVER_NAME
l_.str.2:                               ; @.str.2
	.asciz	"led-active-low"

l_.str.3:                               ; @.str.3
	.asciz	"duty-cycle"

	.comm	_IR_SPI_DEFAULT_FREQUENCY,4,2   ; @IR_SPI_DEFAULT_FREQUENCY
	.no_dead_strip	_ir_spi_probe
.subsections_via_symbols
