	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_ir_tx_probe
_gpio_ir_tx_probe:                      ## @gpio_ir_tx_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_RC_DRIVER_IR_RAW_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_devm_rc_allocate_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_gpiod_get
	movl	%eax, 12(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	12(%rbx), %edi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_6
## %bb.5:
	movl	12(%rbx), %edi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_6:
	movl	12(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, 24(%r15)
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_DEVICE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_gpio_ir_tx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_gpio_ir_tx_set_duty_cycle@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_gpio_ir_tx_set_carrier@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movabsq	$214748402800, %rax             ## imm = 0x3200009470
	movq	%rax, (%rbx)
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_rc_register_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RC_DRIVER_IR_RAW_TX,4,2        ## @RC_DRIVER_IR_RAW_TX
	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get gpio (%ld)\n"

	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.comm	_DEVICE_NAME,4,2                ## @DEVICE_NAME
	.comm	_gpio_ir_tx,4,2                 ## @gpio_ir_tx
	.comm	_gpio_ir_tx_set_duty_cycle,4,2  ## @gpio_ir_tx_set_duty_cycle
	.comm	_gpio_ir_tx_set_carrier,4,2     ## @gpio_ir_tx_set_carrier
L_.str.1:                               ## @.str.1
	.asciz	"failed to register rc device\n"

	.no_dead_strip	_gpio_ir_tx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function gpio_ir_tx_probe
lCPI0_0:
	.long	38000                           ; 0x9470
	.long	50                              ; 0x32
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_gpio_ir_tx_probe:                      ; @gpio_ir_tx_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kmalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _RC_DRIVER_IR_RAW_TX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RC_DRIVER_IR_RAW_TX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_rc_allocate_device
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
Lloh6:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_devm_gpiod_get
	str	w0, [x20, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w0, [x20, #12]
	bl	_PTR_ERR
Lloh9:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x20, #12]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_5:
	ldr	w0, [x20, #12]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_6:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	str	x20, [x21, #24]
Lloh17:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x21, #16]
Lloh20:
	adrp	x8, _DEVICE_NAME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DEVICE_NAME@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _gpio_ir_tx@GOTPAGE
Lloh24:
	ldr	x9, [x9, _gpio_ir_tx@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
Lloh26:
	adrp	x8, _gpio_ir_tx_set_duty_cycle@GOTPAGE
Lloh27:
	ldr	x8, [x8, _gpio_ir_tx_set_duty_cycle@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _gpio_ir_tx_set_carrier@GOTPAGE
Lloh30:
	ldr	x9, [x9, _gpio_ir_tx_set_carrier@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [x21]
Lloh32:
	adrp	x8, lCPI0_0@PAGE
Lloh33:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20], #8
	mov	x0, x20
	bl	_spin_lock_init
	mov	x0, x19
	mov	x1, x21
	bl	_devm_rc_register_device
	mov	x20, x0
	tbz	w0, #31, LBB0_7
; %bb.9:
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdr	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RC_DRIVER_IR_RAW_TX,4,2        ; @RC_DRIVER_IR_RAW_TX
	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get gpio (%ld)\n"

	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.comm	_DEVICE_NAME,4,2                ; @DEVICE_NAME
	.comm	_gpio_ir_tx,4,2                 ; @gpio_ir_tx
	.comm	_gpio_ir_tx_set_duty_cycle,4,2  ; @gpio_ir_tx_set_duty_cycle
	.comm	_gpio_ir_tx_set_carrier,4,2     ; @gpio_ir_tx_set_carrier
l_.str.1:                               ; @.str.1
	.asciz	"failed to register rc device\n"

	.no_dead_strip	_gpio_ir_tx_probe
.subsections_via_symbols
